Skip to content

Commit 874d11f

Browse files
committed
comment of control flow assertions
1 parent 4f2b63f commit 874d11f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

assert/doc.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ add following two lines at the beginning of your unit tests:
77
func TestInvite(t *testing.T) {
88
defer assert.PushTester(t)() // push testing variable t beginning of any test
99
10+
// v-----v Invite control flow includes assertions
1011
alice.Node = root1.Invite(alice.Node, root1.Key, alice.PubKey, 1)
1112
assert.Equal(alice.Len(), 1) // assert anything normally
1213

0 commit comments

Comments
 (0)