MCPcopy Create free account
hub / github.com/SenseUnit/dumbproxy / TestSerialNumberSetNull

Function TestSerialNumberSetNull

auth/cert_test.go:185–210  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

183}
184
185func TestSerialNumberSetNull(t *testing.T) {
186 const testFile = ""
187 testcases := []serialNumberSetTestcase{
188 {
189 input: big.NewInt(0),
190 output: false,
191 },
192 {
193 input: big.NewInt(1),
194 output: false,
195 },
196 {
197 input: big.NewInt(2),
198 output: false,
199 },
200 }
201 s := (*serialNumberSet)(nil)
202 for i, testcase := range testcases {
203 t.Run(fmt.Sprintf("Testcase[%d]", i), func(t *testing.T) {
204 out := s.Has(testcase.input)
205 if out != testcase.output {
206 t.Fatalf("expected %v, got %v", testcase.output, out)
207 }
208 })
209 }
210}

Callers

nothing calls this directly

Calls 2

FatalfMethod · 0.80
HasMethod · 0.45

Tested by

no test coverage detected