MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / TestIOError

Function TestIOError

cli/pkg/ssh_config/parser_test.go:20–29  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

18}
19
20func TestIOError(t *testing.T) {
21 buf := &errReader{}
22 _, err := Decode(buf)
23 if err == nil {
24 t.Fatal("expected non-nil err, got nil")
25 }
26 if err.Error() != "read error occurred" {
27 t.Errorf("expected read error msg, got %v", err)
28 }
29}

Callers

nothing calls this directly

Calls 3

DecodeFunction · 0.85
FatalMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected