package testutil
import "github.com/yuin/goldmark/testutil"
Index ¶
- func DoTestCase(m goldmark.Markdown, testCase MarkdownTestCase, t TestingT, opts ...parser.ParseOption)
- func DoTestCaseFile(m goldmark.Markdown, filename string, t TestingT, no ...int)
- func DoTestCases(m goldmark.Markdown, cases []MarkdownTestCase, t TestingT, opts ...parser.ParseOption)
- func ParseCliCaseArg() []int
- type MarkdownTestCase
- type TestingT
Functions ¶
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.
func ParseCliCaseArg ¶
func ParseCliCaseArg() []int
ParseCliCaseArg parses -case command line args.
Types ¶
type MarkdownTestCase ¶
MarkdownTestCase represents a test case.
type TestingT ¶
type TestingT interface { Logf(string, ...interface{}) Skipf(string, ...interface{}) Errorf(string, ...interface{}) FailNow() }
TestingT is a subset of the functionality provided by testing.T.
Source Files ¶
- Version
- v1.3.0
- Published
- Dec 13, 2020
- Platform
- linux/amd64
- Imports
- 10 packages
- Last checked
- 1 month ago –
Tools for package owners.