-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdoc.go
18 lines (15 loc) · 1.03 KB
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// -----------------------------------------------------------------------------
// asserts for more convinient testing - documentation
//
// Copyright (C) 2024 Frank Mueller / Oldenburg / Germany / World
// -----------------------------------------------------------------------------
// Package asserts helps writing convenient and powerful unit tests. There are different
// assertions for booleans, nils, comparisons, errors, and time. Direct fails or just
// logging is possible. The package is designed to be used with the standard testing
// package. The testing argument of the functions is the *testing.T. So statements like
// asserts.True(t, myBoolean) or asserts.Less(t, expected, actual) are possible. At the
// end of a test function the number of failures can be checked with asserts.Failures(tester, 2).
package asserts // import "tideland.dev/go/asserts"
// -----------------------------------------------------------------------------
// end of file
// -----------------------------------------------------------------------------