Documentation
¶
Index ¶
- func CLIDownloadLockFileCleanUp(t *testing.T)
- func CreateDummyProgressListener(t *testing.T)
- func CreateFileOrFail(t *testing.T, filePath string, content []byte)
- func CreateTempFile(tempDir string, t *testing.T) *os.File
- func GetEnvironmentToken() 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 SmokeTest(t *testing.T) *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 ¶
This section is empty.
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 GetEnvironmentToken() string
func NotOnWindows ¶
func OnlyEnableCode ¶
func OnlyEnableCode()
func OnlyOnWindows ¶
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.