testutils

package
v0.0.0-...-e5efe94 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2016 License: MIT, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShouldMatchJSON

func ShouldMatchJSON(actual interface{}, expected ...interface{}) string

ShouldMatchJSON checks if actual and expected[0] are strings that hold the same JSON representation logic copied from https://github.com/onsi/gomega/blob/d6c945f9fdbf6cad99e85b0feff591caa268e0db/matchers/match_json_matcher.go#L15-L29

func ShouldNotBeRunningGoroutines

func ShouldNotBeRunningGoroutines(actual interface{}, _ ...interface{}) string

ShouldNotBeRunningGoroutines takes in the name of the current module as `actual` and returns a blank string if no other goroutines are running in that module, besides testing gorutines. If there are other goroutines running, it will output the full stacktrace. It does this by parsing the full stack trace of all currently running goroutines and seeing if any of them are within this module and are not testing goroutines.

func ShouldNotMatchJSON

func ShouldNotMatchJSON(actual interface{}, expected ...interface{}) string

ShouldNotMatchJSON checks if actual and expected[0] are strings that hold different JSON representations logic copied from https://github.com/onsi/gomega/blob/d6c945f9fdbf6cad99e85b0feff591caa268e0db/matchers/match_json_matcher.go#L15-L29

Types

This section is empty.

Jump to

Keyboard shortcuts

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