GO-2022-0937 : Elvish vulnerable to remote code execution via the web UI backend in github.com/elves/elvish
Discover Packages
github.com/elves/elvish
tt
package
Version:
v0.11.0
Opens a new window with list of versions in this module.
Published: Jan 16, 2018
License: BSD-2-Clause
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package tt supports table-driven tests with little boilerplate.
See the test case for this package for example usage.
Test tests a function against test cases.
Case represents a test case. It is created by the C function, and offers
setters that augment and return itself; those calls can be chained like
C(...).Rets(...).
func Args(args ...interface{}) *Case
Args returns a new Case with the given arguments.
func (c *Case ) Rets(matchers ...interface{}) *Case
Rets modifies the test case so that it requires the return values to match
the given values. It returns the receiver.
FnToTest describes a function to test.
Fn makes a new FnToTest with the given function name and body.
ArgsFmt sets the string for formatting arguments in test error messages, and
return fn itself.
RetsFmt sets the string for formatting return values in test error messages,
and return fn itself.
type T interface {
Errorf(format string , args ...interface{})
}
T is the interface for accessing testing.T.
Table represents a test table.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.