(t *testing.T)
| 4994 | } |
| 4995 | |
| 4996 | func TestCommandInvalidName(t *testing.T) { |
| 4997 | var cmd Command |
| 4998 | assert.Equal(t, int64(0), cmd.Int64("foo")) |
| 4999 | assert.Equal(t, uint64(0), cmd.Uint64("foo")) |
| 5000 | assert.Equal(t, float64(0), cmd.Float("foo")) |
| 5001 | assert.Equal(t, "", cmd.String("foo")) |
| 5002 | assert.Equal(t, time.Time{}, cmd.Timestamp("foo")) |
| 5003 | assert.Equal(t, time.Duration(0), cmd.Duration("foo")) |
| 5004 | |
| 5005 | assert.Equal(t, []int64(nil), cmd.Int64Slice("foo")) |
| 5006 | assert.Equal(t, []uint64(nil), cmd.Uint64Slice("foo")) |
| 5007 | assert.Equal(t, []float64(nil), cmd.FloatSlice("foo")) |
| 5008 | assert.Equal(t, []string(nil), cmd.StringSlice("foo")) |
| 5009 | } |
| 5010 | |
| 5011 | func TestCommandCategories(t *testing.T) { |
| 5012 | var cc commandCategories = []*commandCategory{ |
nothing calls this directly
no test coverage detected