Skip to content

Commit

Permalink
Simplify tb
Browse files Browse the repository at this point in the history
  • Loading branch information
flyingmutant committed Aug 3, 2023
1 parent ad51225 commit 2fe187c
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,23 +474,7 @@ type TB interface {
Failed() bool
}

// tb is a private copy of TB, made to avoid T having public fields
type tb interface {
Helper()
Name() string
Logf(format string, args ...any)
Log(args ...any)
Skipf(format string, args ...any)
Skip(args ...any)
SkipNow()
Errorf(format string, args ...any)
Error(args ...any)
Fatalf(format string, args ...any)
Fatal(args ...any)
FailNow()
Fail()
Failed() bool
}
type tb TB // tb is a private copy of TB, made to avoid T having public fields

// T is similar to [testing.T], but with extra bookkeeping for property-based tests.
//
Expand Down

0 comments on commit 2fe187c

Please sign in to comment.