Documentation ¶
Index ¶
- Constants
- func CLIDownloadLockFileCleanUp(t *testing.T)
- func CreateDummyProgressListener(t *testing.T)
- func CreateFileOrFail(t *testing.T, filePath string, content []byte)
- func CreateTempFile(t *testing.T, tempDir string) *os.File
- func GetEnvironmentToken(useConsistentIgnores bool) string
- func IntegTest(t *testing.T) *config.Config
- func NotOnWindows(t *testing.T, reason string)
- func OnlyEnableCode()
- func OnlyOnWindows(t *testing.T, reason string)
- func SetUpEngineMock(t *testing.T, c *config.Config) (*mocks.MockEngine, configuration.Configuration)
- func SetupCustomTestRepo(t *testing.T, rootDir string, url string, targetCommit string, ...) (string, error)
- func SmokeTest(t *testing.T, useConsistentIgnores bool) *config.Config
- func UnitTest(t *testing.T) *config.Config
- type JsonRPCRecorder
- func (r *JsonRPCRecorder) Callbacks() []jrpc2.Request
- func (r *JsonRPCRecorder) ClearCallbacks()
- func (r *JsonRPCRecorder) ClearNotifications()
- func (r *JsonRPCRecorder) FindCallbacksByMethod(method string) []jrpc2.Request
- func (r *JsonRPCRecorder) FindNotificationsByMethod(method string) []jrpc2.Request
- func (r *JsonRPCRecorder) Notifications() []jrpc2.Request
- func (r *JsonRPCRecorder) Record(request jrpc2.Request)
Constants ¶
View Source
const (
NodejsGoof = "https://github.com/snyk-labs/nodejs-goof"
)
Variables ¶
This section is empty.
Functions ¶
func CreateFileOrFail ¶
CreateFileOrFail creates a file in filePath with the specified content, and fails the test if there's error. If the path to the file doesn't exist, CreateFileOrFail will create it. The file does not get cleaned up, and it is the caller's responsibility to remove it.
func GetEnvironmentToken ¶
func NotOnWindows ¶
func OnlyEnableCode ¶
func OnlyEnableCode()
func OnlyOnWindows ¶
func SetUpEngineMock ¶
func SetUpEngineMock(t *testing.T, c *config.Config) (*mocks.MockEngine, configuration.Configuration)
func SetupCustomTestRepo ¶
Types ¶
type JsonRPCRecorder ¶
type JsonRPCRecorder struct {
// contains filtered or unexported fields
}
func (*JsonRPCRecorder) Callbacks ¶
func (r *JsonRPCRecorder) Callbacks() []jrpc2.Request
func (*JsonRPCRecorder) ClearCallbacks ¶
func (r *JsonRPCRecorder) ClearCallbacks()
func (*JsonRPCRecorder) ClearNotifications ¶
func (r *JsonRPCRecorder) ClearNotifications()
func (*JsonRPCRecorder) FindCallbacksByMethod ¶
func (r *JsonRPCRecorder) FindCallbacksByMethod(method string) []jrpc2.Request
func (*JsonRPCRecorder) FindNotificationsByMethod ¶
func (r *JsonRPCRecorder) FindNotificationsByMethod(method string) []jrpc2.Request
func (*JsonRPCRecorder) Notifications ¶
func (r *JsonRPCRecorder) Notifications() []jrpc2.Request
func (*JsonRPCRecorder) Record ¶
func (r *JsonRPCRecorder) Record(request jrpc2.Request)
Click to show internal directories.
Click to hide internal directories.