MCPcopy
hub / github.com/tinygo-org/tinygo / testValue

Function testValue

testdata/atomic.go:91–100  ·  view source on GitHub ↗
(values ...interface{})

Source from the content-addressed store, hash-verified

89}
90
91func testValue(values ...interface{}) {
92 var av atomic.Value
93 for _, val := range values {
94 av.Store(val)
95 loadedVal := av.Load()
96 if loadedVal != val {
97 println("val store/load didn't work, expected", val, "but got", loadedVal)
98 }
99 }
100}
101
102func testDefer() {
103 n1 := int32(5)

Callers 1

mainFunction · 0.85

Calls 2

StoreMethod · 0.45
LoadMethod · 0.45

Tested by

no test coverage detected