MCPcopy Create free account
hub / github.com/NextDotID/proof_server / before_each

Function before_each

controller/main_test.go:22–26  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

20)
21
22func before_each(t *testing.T) {
23 // Clean DB
24 model.DB.Where("1 = 1").Delete(&model.Proof{})
25 model.DB.Where("1 = 1").Delete(&model.ProofChain{})
26}
27
28func TestMain(m *testing.M) {
29 config.Init("../config/config.test.json")

Callers 6

Test_proofPayloadFunction · 0.70
Test_ProofUploadFunction · 0.70
Test_proofExistsFunction · 0.70
Test_proofChainQueryFunction · 0.70
TestMainFunction · 0.70
Test_proofQueryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected