Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/franela/goblin
/ functions
Functions
163 in github.com/franela/goblin
⨍
Functions
163
◇
Types & classes
17
↓ 81 callers
Method
It
(name string, h ...interface{})
goblin.go:287
↓ 62 callers
Method
Assert
(src interface{})
goblin.go:346
↓ 61 callers
Method
Describe
(name string, h func())
goblin.go:24
↓ 45 callers
Method
Equal
Equal takes a destination object and asserts that a source object and destination object are equal to one another. It will fail the assertion and prin
assertions.go:65
↓ 40 callers
Function
Goblin
(t *testing.T, arguments ...string)
goblin.go:204
↓ 35 callers
Method
Verify
(t *testing.T)
assertions_test.go:24
↓ 17 callers
Method
IsZero
IsZero asserts that source is a zero value for its respective type. If it is a structure, for example, all of its fields must have their respective ze
assertions.go:118
↓ 15 callers
Method
IsNotZero
IsNotZero asserts the contrary of IsZero.
assertions.go:129
↓ 11 callers
Method
BeforeEach
(h func())
goblin.go:330
↓ 10 callers
Method
AfterEach
(h func())
goblin.go:342
↓ 10 callers
Method
Fail
(error interface{})
goblin.go:377
↓ 9 callers
Method
FailNow
()
goblin.go:382
↓ 9 callers
Function
verifyFormat
Verify that a slice of messages is formatted as expected.
assertions_test.go:38
↓ 8 callers
Method
Before
(h func())
goblin.go:326
↓ 8 callers
Function
formatMessages
Format series of messages provided to an assertion. Separate messages from the preamble of assertion with a comma and concatenate messages using spac
assertions.go:36
↓ 7 callers
Method
After
(h func())
goblin.go:338
↓ 7 callers
Method
VerifyMessage
(t *testing.T, message string)
assertions_test.go:30
↓ 6 callers
Method
Fatalf
(format string, args ...interface{})
goblin.go:391
↓ 6 callers
Method
SetReporter
(r Reporter)
goblin.go:283
↓ 5 callers
Method
IsNil
IsNil asserts that source is nil.
assertions.go:95
↓ 5 callers
Method
IsNotNil
IsNotNil asserts that source is not nil.
assertions.go:104
↓ 5 callers
Method
IsTrue
IsTrue asserts that a source is equal to true. Optional messages can be provided for inclusion in the displayed message if the assertion fails. It wil
assertions.go:75
↓ 5 callers
Function
objectsAreEqual
(a, b interface{})
assertions.go:16
↓ 4 callers
Method
Eql
Eql is a shorthand alias of Equal for convenience
assertions.go:58
↓ 4 callers
Method
JustBeforeEach
(h func())
goblin.go:334
↓ 4 callers
Method
Xit
(name string, h ...interface{})
goblin.go:301
↓ 4 callers
Method
errorCommon
(msg string, fatal bool)
goblin.go:358
↓ 4 callers
Function
parseFlags
()
goblin.go:188
↓ 4 callers
Method
print
(text string)
reporting.go:80
↓ 3 callers
Method
Gray
(text string)
reporting.go:26
↓ 3 callers
Method
IsFalse
IsFalse asserts that a source is equal to false. Optional messages can be provided for inclusion in the displayed message if the assertion fails. It w
assertions.go:86
↓ 3 callers
Method
Red
(text string)
reporting.go:25
↓ 2 callers
Method
Cyan
(text string)
reporting.go:27
↓ 2 callers
Function
ResolveStack
(skip int)
resolver.go:8
↓ 2 callers
Method
Yellow
(text string)
reporting.go:29
↓ 2 callers
Method
getSpace
()
reporting.go:72
↓ 2 callers
Function
matchesRegex
(value string)
goblin.go:312
↓ 2 callers
Function
notifyParents
(d *Describe)
goblin.go:319
↓ 2 callers
Method
runAfterEach
()
goblin.go:84
↓ 2 callers
Method
runBeforeEach
()
goblin.go:64
↓ 2 callers
Method
runJustBeforeEach
()
goblin.go:74
↓ 2 callers
Function
timeTrack
(g *G, call func())
goblin.go:350
↓ 1 callers
Method
Begin
()
reporting.go:14
↓ 1 callers
Method
BeginDescribe
(string)
reporting.go:12
↓ 1 callers
Method
End
()
reporting.go:15
↓ 1 callers
Method
EndDescribe
()
reporting.go:13
↓ 1 callers
Method
Errorf
(format string, args ...interface{})
goblin.go:396
↓ 1 callers
Method
Failf
(format string, args ...interface{})
goblin.go:386
↓ 1 callers
Method
Failure
(*Failure)
reporting.go:16
↓ 1 callers
Method
Green
(text string)
reporting.go:28
↓ 1 callers
Method
ItFailed
(string)
reporting.go:18
↓ 1 callers
Method
ItIsExcluded
(string)
reporting.go:21
↓ 1 callers
Method
ItIsPending
(string)
reporting.go:20
↓ 1 callers
Method
ItPassed
(string)
reporting.go:19
↓ 1 callers
Method
ItTook
(time.Duration)
reporting.go:17
↓ 1 callers
Method
Timeout
(time time.Duration)
goblin.go:46
↓ 1 callers
Method
WithCheck
(text string)
reporting.go:30
↓ 1 callers
Function
cleanStack
(stack []byte, skip int)
resolver.go:12
↓ 1 callers
Function
dummyFunc
(g *G)
resolver_test.go:17
↓ 1 callers
Method
failed
(string, []string)
goblin.go:21
↓ 1 callers
Method
printWithCheck
(text string)
reporting.go:84
↓ 1 callers
Method
run
(*G)
goblin.go:20
↓ 1 callers
Method
run
(g *G)
goblin.go:95
↓ 1 callers
Function
runIt
(g *G, it *It)
goblin.go:221
Method
Begin
()
reporting_test.go:59
Method
Begin
()
reporting.go:125
Method
BeginDescribe
(name string)
reporting_test.go:24
Method
BeginDescribe
(name string)
reporting.go:88
Method
Cyan
(text string)
mono_reporter.go:16
Method
Cyan
(text string)
reporting.go:56
Method
End
()
reporting_test.go:63
Method
End
()
reporting.go:128
Method
EndDescribe
()
reporting_test.go:28
Method
EndDescribe
()
reporting.go:94
Method
FailFunc
(msg interface{})
assertions_test.go:19
Method
Failure
(failure *Failure)
reporting_test.go:32
Method
Failure
(failure *Failure)
reporting.go:76
Method
Gray
(text string)
mono_reporter.go:12
Method
Gray
(text string)
reporting.go:52
Method
Green
(text string)
mono_reporter.go:24
Method
Green
(text string)
reporting.go:60
Method
Helper
()
goblin.go:401
Method
ItFailed
(name string)
reporting_test.go:36
Method
ItFailed
(name string)
reporting.go:105
Method
ItIsExcluded
(name string)
reporting_test.go:48
Method
ItIsExcluded
(name string)
reporting.go:120
Method
ItIsPending
(name string)
reporting_test.go:44
Method
ItIsPending
(name string)
reporting.go:115
Method
ItPassed
(name string)
reporting_test.go:40
Method
ItPassed
(name string)
reporting.go:110
Method
ItTook
(duration time.Duration)
reporting_test.go:52
Method
ItTook
(duration time.Duration)
reporting.go:98
Method
Red
(text string)
mono_reporter.go:8
Method
Red
(text string)
reporting.go:48
Method
SetTextFancier
(f TextFancier)
reporting.go:41
Function
TestAddNumbersFails
(t *testing.T)
goblin_test.go:121
Function
TestAddNumbersSucceed
(t *testing.T)
goblin_test.go:105
Function
TestAfter
(t *testing.T)
describe_test.go:92
Function
TestAfterEach
(t *testing.T)
it_test.go:92
Function
TestAsync
(t *testing.T)
goblin_test.go:11
next →
1–100 of 163, ranked by callers