MCPcopy Create free account
hub / github.com/CPChain/chain / TestVM

Function TestVM

tests/vm_test.go:26–43  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

24)
25
26func TestVM(t *testing.T) {
27 configs.SetRunMode(configs.Testcase)
28
29 t.Parallel()
30 vmt := new(testMatcher)
31 vmt.fails("^vmSystemOperationsTest.json/createNameRegistrator$", "fails without parallel execution")
32
33 vmt.skipLoad(`^vmInputLimits(Light)?.json`) // log format broken
34
35 vmt.skipShortMode("^vmPerformanceTest.json")
36 vmt.skipShortMode("^vmInputLimits(Light)?.json")
37
38 vmt.walk(t, vmTestDir, func(t *testing.T, name string, test *VMTest) {
39 withTrace(t, test.json.Exec.GasLimit, func(vmconfig vm.Config) error {
40 return vmt.checkFailure(t, name, test.Run(vmconfig))
41 })
42 })
43}

Callers

nothing calls this directly

Calls 7

withTraceFunction · 0.85
failsMethod · 0.80
skipLoadMethod · 0.80
skipShortModeMethod · 0.80
walkMethod · 0.80
checkFailureMethod · 0.80
RunMethod · 0.65

Tested by

no test coverage detected