(t *testing.T)
| 12 | ) |
| 13 | |
| 14 | func TestMD(t *testing.T) { |
| 15 | tests := map[string]string{ |
| 16 | "h1": `# Test`, |
| 17 | "h2": `## Test`, |
| 18 | "p": `Test`, |
| 19 | `code`: "```go\npackage main\n\nimport \"fmt\"\n\nfunc main() {\n\tfmt.Println(\"Hello, World!\")\n}\n```", |
| 20 | } |
| 21 | for nm, s := range tests { |
| 22 | b := core.NewBody() |
| 23 | assert.NoError(t, ReadMDString(NewContext(), b, s)) |
| 24 | b.AssertRender(t, "md/"+nm) |
| 25 | } |
| 26 | } |
nothing calls this directly
no test coverage detected