Debian Codegraph @

each_test.go

raw
1 package expect
2
3 import (
4 "testing"
5 )
6
7 type EachTests struct {
8 called bool
9 }
10
11 func Test_Each(t *testing.T) {
12 Expectify(new(EachTests), t)
13 }
14
15 func (e *EachTests) RunsEach() {
16 Expect(e.called).To.Equal(true)
17 }
18
19 func (e *EachTests) Each(f func()) {
20 e.called = true
21 f()
22 }