testutil

package
v1.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoTestCase

func DoTestCase(m goldmark.Markdown, testCase MarkdownTestCase, t TestingT)

func DoTestCaseFile

func DoTestCaseFile(m goldmark.Markdown, filename string, t TestingT)

func DoTestCases

func DoTestCases(m goldmark.Markdown, cases []MarkdownTestCase, t TestingT)

Types

type MarkdownTestCase

type MarkdownTestCase struct {
	No       int
	Markdown string
	Expected string
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL