MCPcopy Create free account
hub / github.com/Sifchain/sifnode / getExpected

Function getExpected

integrationtest/integration_test.go:498–509  ·  view source on GitHub ↗
(tc TestCase)

Source from the content-addressed store, hash-verified

496}
497
498func getExpected(tc TestCase) (*TestResults, error) {
499 bz, err := os.ReadFile("output/" + tc.Name + ".json")
500 if err != nil {
501 return nil, err
502 }
503 var results TestResults
504 err = json.Unmarshal(bz, &results)
505 if err != nil {
506 return nil, err
507 }
508 return &results, nil
509}

Callers 1

TestIntegrationFunction · 0.85

Calls 1

UnmarshalMethod · 0.45

Tested by

no test coverage detected