(t *testing.T)
| 13 | ) |
| 14 | |
| 15 | func TestEmptyIntegrityBlock(t *testing.T) { |
| 16 | integrityBlock := generateEmptyIntegrityBlock() |
| 17 | |
| 18 | integrityBlockBytes, err := integrityBlock.CborBytes() |
| 19 | if err != nil { |
| 20 | t.Errorf("integrityBlock.CborBytes. err: %v", err) |
| 21 | } |
| 22 | |
| 23 | want := `["🖋📦" "1b\x00\x00" []]` |
| 24 | |
| 25 | got, err := testhelper.CborBinaryToReadableString(integrityBlockBytes) |
| 26 | if err != nil { |
| 27 | t.Fatal(err) |
| 28 | } |
| 29 | if got != want { |
| 30 | t.Errorf("integrityblock: got: %s\nwant: %s", got, want) |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | func TestAddNewSignatureToIntegrityBlock(t *testing.T) { |
| 35 | integrityBlock := generateEmptyIntegrityBlock() |
nothing calls this directly
no test coverage detected