(t *testing.T)
| 11 | ) |
| 12 | |
| 13 | func TestMaskData(t *testing.T) { |
| 14 | fullMask := GetMaskData(0, common.Hash{}, 128, nil) |
| 15 | partialMask := GetMaskData(0, common.Hash{}, 7, nil) |
| 16 | if !bytes.Equal(fullMask[0:len(partialMask)], partialMask) { |
| 17 | t.Errorf("partial mask data wrong") |
| 18 | } |
| 19 | |
| 20 | fullMask = GetMaskData(0, common.Hash{}, 4096, nil) |
| 21 | partialMask = GetMaskData(0, common.Hash{}, 4095, nil) |
| 22 | if !bytes.Equal(fullMask[0:len(partialMask)], partialMask) { |
| 23 | t.Errorf("partial mask data wrong") |
| 24 | } |
| 25 | } |
nothing calls this directly
no test coverage detected