Documentation ¶
Index ¶
- func DiffPretty(v1, v2 []byte) []byte
- func DoTestCase(m goldmark.Markdown, testCase MarkdownTestCase, t TestingT, ...)
- func DoTestCaseFile(m goldmark.Markdown, filename string, t TestingT, no ...int)
- func DoTestCases(m goldmark.Markdown, cases []MarkdownTestCase, t TestingT, ...)
- func ParseCliCaseArg() []int
- type MarkdownTestCase
- type MarkdownTestCaseOptions
- type TestingT
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiffPretty ¶
DiffPretty returns pretty formatted diff between given bytes.
func DoTestCase ¶
func DoTestCase(m goldmark.Markdown, testCase MarkdownTestCase, t TestingT, opts ...parser.ParseOption)
DoTestCase runs a test case.
func DoTestCaseFile ¶
DoTestCaseFile runs test cases in a given file.
func DoTestCases ¶
func DoTestCases(m goldmark.Markdown, cases []MarkdownTestCase, t TestingT, opts ...parser.ParseOption)
DoTestCases runs a set of test cases.
Types ¶
type MarkdownTestCase ¶
type MarkdownTestCase struct { No int Description string Options MarkdownTestCaseOptions Markdown string Expected string }
MarkdownTestCase represents a test case.
type MarkdownTestCaseOptions ¶
MarkdownTestCaseOptions represents options for each test case.
Click to show internal directories.
Click to hide internal directories.