MCPcopy Create free account
hub / github.com/DNAProject/DNA / TestGetNonce

Function TestGetNonce

common/common_test.go:37–41  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

35}
36
37func TestGetNonce(t *testing.T) {
38 nonce1 := GetNonce()
39 nonce2 := GetNonce()
40 assert.NotEqual(t, nonce1, nonce2)
41}
42
43func TestFileExisted(t *testing.T) {
44 assert.True(t, FileExisted("common_test.go"))

Callers

nothing calls this directly

Calls 1

GetNonceFunction · 0.85

Tested by

no test coverage detected