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

Function TestSerialNumberSetNullMap

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

Source from the content-addressed store, hash-verified

156}
157
158func TestSerialNumberSetNullMap(t *testing.T) {
159 const testFile = ""
160 testcases := []serialNumberSetTestcase{
161 {
162 input: big.NewInt(0),
163 output: false,
164 },
165 {
166 input: big.NewInt(1),
167 output: false,
168 },
169 {
170 input: big.NewInt(2),
171 output: false,
172 },
173 }
174 s := new(serialNumberSet)
175 for i, testcase := range testcases {
176 t.Run(fmt.Sprintf("Testcase[%d]", i), func(t *testing.T) {
177 out := s.Has(testcase.input)
178 if out != testcase.output {
179 t.Fatalf("expected %v, got %v", testcase.output, out)
180 }
181 })
182 }
183}
184
185func TestSerialNumberSetNull(t *testing.T) {
186 const testFile = ""

Callers

nothing calls this directly

Calls 2

FatalfMethod · 0.80
HasMethod · 0.45

Tested by

no test coverage detected