Skip to content

Commit

Permalink
comment of control flow assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
lainio committed Feb 28, 2024
1 parent 4f2b63f commit 874d11f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions assert/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ add following two lines at the beginning of your unit tests:
func TestInvite(t *testing.T) {
defer assert.PushTester(t)() // push testing variable t beginning of any test
// v-----v Invite control flow includes assertions
alice.Node = root1.Invite(alice.Node, root1.Key, alice.PubKey, 1)
assert.Equal(alice.Len(), 1) // assert anything normally
Expand Down

0 comments on commit 874d11f

Please sign in to comment.