Documentation ¶
Index ¶
- func Compile(tb testing.TB, input string) *ast.Statement
- type Scanner
- func (s *Scanner) Error(args ...interface{})
- func (s *Scanner) Errorf(format string, args ...interface{})
- func (s *Scanner) Fatal(args ...interface{})
- func (s *Scanner) Fatalf(format string, args ...interface{})
- func (s *Scanner) Log(args ...interface{})
- func (s *Scanner) Logf(format string, args ...interface{})
- func (s *Scanner) Scan() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Scanner ¶
Scanner is a convenience wrapper around a bufio.Scanner that keeps track of the last read line number. It also:
- captures an associated name for the reader (typically a file name) to generate positional error messages.
- embeds a *testing.T to automatically record errors with the position it corresponds to.
func (*Scanner) Error ¶
func (s *Scanner) Error(args ...interface{})
Error is thin wrapper around testing.T's interface.
func (*Scanner) Fatal ¶
func (s *Scanner) Fatal(args ...interface{})
Fatal is thin wrapper around testing.T's interface.
func (*Scanner) Log ¶
func (s *Scanner) Log(args ...interface{})
Log is thin wrapper around testing.T's interface.
Click to show internal directories.
Click to hide internal directories.