(t *testing.T)
| 85 | } |
| 86 | |
| 87 | func TestDataFetching(t *testing.T) { |
| 88 | t.Parallel() |
| 89 | |
| 90 | c1 := New(utils.DuplicateBytes(testData)) |
| 91 | data := c1.GetMax(1) |
| 92 | if string(data[0]) != "T" { |
| 93 | t.Errorf("failed to GetMax(1), got %s, expected %s", string(data), "T") |
| 94 | } |
| 95 | |
| 96 | _, err := c1.Get(1000) |
| 97 | if err == nil { |
| 98 | t.Error("should fail") |
| 99 | } |
| 100 | |
| 101 | _, err = c1.GetAsContainer(1000) |
| 102 | if err == nil { |
| 103 | t.Error("should fail") |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | func TestBlocks(t *testing.T) { |
| 108 | t.Parallel() |
nothing calls this directly
no test coverage detected