(t *testing.T)
| 18 | ) |
| 19 | |
| 20 | func TestInspectCmdPrintf(t *testing.T) { |
| 21 | buf := new(bytes.Buffer) |
| 22 | inspect := NewInspectCmd("foo", buf) |
| 23 | inspect.printf("Answer: %d", 42) |
| 24 | |
| 25 | output := buf.String() |
| 26 | require.Contains(t, output, "Answer: 42") |
| 27 | } |
| 28 | |
| 29 | func TestInspectCmdJson(t *testing.T) { |
| 30 | inputString := `{"name":"test","options":["one","two"]}` |
nothing calls this directly
no test coverage detected