MCPcopy Create free account
hub / github.com/prometheus/procfs / TestFS_CryptoCorrupted

Function TestFS_CryptoCorrupted

crypto_test.go:125–137  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

123}
124
125func 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
139func newint64(i int64) *int64 {
140 return &i

Callers

nothing calls this directly

Calls 2

getProcFixturesFunction · 0.85
CryptoMethod · 0.80

Tested by

no test coverage detected