1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! Integration tests for the renderer. Each `mod` here is a file in
//! `tests/render/`; collectively they exercise every renderer feature
//! through the public `parse_into_bytes` API.
//!
//! `tests/render.rs` is treated by Cargo as the crate root for this
//! integration-test target, so `mod foo;` would resolve relative to
//! `tests/` rather than `tests/render/`. We use `#[path = ...]` to keep
//! the test files grouped under `tests/render/`.
//!
//! Shared helper code (the `render` helper used by nearly every file)
//! lives in `tests/render/common.rs`, mirroring the lexer tests'
//! `tests/markdown/common.rs` layout.