(t *testing.T)
| 24 | ) |
| 25 | |
| 26 | func Test_getFilesToAdd(t *testing.T) { |
| 27 | filename := "gist-test.txt" |
| 28 | |
| 29 | gf, err := getFilesToAdd(filename, []byte("hello")) |
| 30 | require.NoError(t, err) |
| 31 | |
| 32 | assert.Equal(t, map[string]*gistFileToUpdate{ |
| 33 | filename: { |
| 34 | NewFilename: filename, |
| 35 | Content: "hello", |
| 36 | }, |
| 37 | }, gf) |
| 38 | } |
| 39 | |
| 40 | func TestNewCmdEdit(t *testing.T) { |
| 41 | tests := []struct { |
nothing calls this directly
no test coverage detected