(t *testing.T)
| 117 | } |
| 118 | |
| 119 | func TestReadWriteExtensionBytes(t *testing.T) { |
| 120 | var bts []byte |
| 121 | |
| 122 | for range 24 { |
| 123 | e := randomExt() |
| 124 | bts, _ = AppendExtension(bts[0:0], &e) |
| 125 | _, err := ReadExtensionBytes(bts, &e) |
| 126 | if err != nil { |
| 127 | t.Errorf("error with extension (length %d): %s", len(bts), err) |
| 128 | } |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | func TestAppendAndWriteCompatibility(t *testing.T) { |
| 133 | var bts []byte |
nothing calls this directly
no test coverage detected
searching dependent graphs…