scanner

package
v0.0.0-...-cf9562f Latest Latest
Warning

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

Go to latest
Published: May 2, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ILLEGAL represents a non-identifier.
	ILLEGAL token = iota
	// ACTION should be an action a tester should take.
	ACTION
	// EXPECT should be an expectation a tester should have.
	EXPECT
	// GROUP is a human friendly identifier for the group of tests.
	GROUP
	// DEPS represents other groups that should come before this one.
	DEPS
	// PRIORITY allows for order within a collection of groups.
	PRIORITY
)

Variables

This section is empty.

Functions

func Scan

func Scan(content string, c Config) *document.Document

Scan the text

Types

type Config

type Config struct {

	// AllowLinebreaks will cause the parser to respect line breaks.
	AllowLinebreaks bool
}

Config for main scanner method

Jump to

Keyboard shortcuts

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