(t *testing.T)
| 123 | } |
| 124 | |
| 125 | func TestFS_CryptoCorrupted(t *testing.T) { |
| 126 | cryptoFile = "crypto_corrupted" |
| 127 | fs := getProcFixtures(t) |
| 128 | crypto, err := fs.Crypto() |
| 129 | |
| 130 | if !errors.Is(err, ErrFileParse) { |
| 131 | t.Fatalf("expected ErrFileParse error, got: %s", err) |
| 132 | } |
| 133 | |
| 134 | if crypto != nil { |
| 135 | t.Fatalf("expected empty crypto result") |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | func newint64(i int64) *int64 { |
| 140 | return &i |
nothing calls this directly
no test coverage detected