about summary refs log tree commit diff
path: root/tools/cheddar/src/main.rs
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-03-27T15·47+0200
committertazjin <mail@tazj.in>2021-03-31T22·06+0000
commitc7105090786d34bbb7cc1da9cead7441411ad858 (patch)
treeb1d88b752f5c6ef344da28b0448707d53308ef13 /tools/cheddar/src/main.rs
parent58cca2faaa01af057eafc53fbf3a81b61c88387b (diff)
test(cheddar): Add simple Markdown rendering tests r/2373
Covers some of the odd things we do, specifically callouts and code
rendering.

Change-Id: Ib8542373b434b53d277b0d8c9ddb78ac7c5176a5
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2689
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
Diffstat (limited to 'tools/cheddar/src/main.rs')
-rw-r--r--tools/cheddar/src/main.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/cheddar/src/main.rs b/tools/cheddar/src/main.rs
index 25e8ff32878b..6e04f22e662e 100644
--- a/tools/cheddar/src/main.rs
+++ b/tools/cheddar/src/main.rs
@@ -25,6 +25,9 @@ use syntect::html::{
     append_highlighted_html_for_styled_line, start_highlighted_html_snippet, IncludeBackground,
 };
 
+#[cfg(test)]
+mod tests;
+
 lazy_static! {
     // Load syntaxes & themes lazily. Initialisation might not be
     // required in the case of Markdown rendering (if there's no code