(t *testing.T)
| 44 | } |
| 45 | |
| 46 | func Test_guessGistName_userFiles(t *testing.T) { |
| 47 | files := map[string]*shared.GistFile{ |
| 48 | "fig.txt": {Content: "I am a fig"}, |
| 49 | "apple.txt": {Content: "I am an apple"}, |
| 50 | "gistfile0.txt": {Content: "sample content"}, |
| 51 | } |
| 52 | |
| 53 | gistName := guessGistName(files) |
| 54 | assert.Equal(t, "apple.txt", gistName) |
| 55 | } |
| 56 | |
| 57 | func TestNewCmdCreate(t *testing.T) { |
| 58 | tests := []struct { |
nothing calls this directly
no test coverage detected