MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / TestBits

Function TestBits

pkg/controller/rtctrl/logstore_test.go:27–47  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

25)
26
27func TestBits(t *testing.T) {
28 var b bits
29 if b.Has(flagClosed) {
30 t.Error(b)
31 return
32 }
33 b.Set(flagClosed)
34 if !b.Has(flagClosed) {
35 t.Error(b)
36 return
37 }
38 b.Set(flagOutdone)
39 if !b.Has(flagClosed) {
40 t.Error(b)
41 return
42 }
43 if b != flagClosed|flagOutdone {
44 t.Error(b)
45 return
46 }
47}
48
49func TestKunLogStatStore(t *testing.T) {
50 params := &LogStatStoreParameter{

Callers

nothing calls this directly

Calls 3

HasMethod · 0.95
SetMethod · 0.95
ErrorMethod · 0.45

Tested by

no test coverage detected