Debian Codegraph @

each_no_test.go

raw
1 package expect
2
3 import (
4 "testing"
5 )
6
7 type EachNoTests struct {
8 called int
9 }
10
11 func Test_EachNo(t *testing.T) {
12 Expectify(new(EachNoTests), t)
13 }
14
15 func (et *EachNoTests) DoesNotRunEach() {
16 Expect(et.called).Less.Than(2)
17 }
18
19 func (et *EachNoTests) Each() {
20 et.called++
21 Expect(et.called).Less.Than(2)
22 }