(t *testing.T)
| 161 | } |
| 162 | |
| 163 | func TestDefaultStoreValue(t *testing.T) { |
| 164 | cfg1 := Config{} |
| 165 | cfg1.RegisterFlagsWithPrefix("", "", flag.NewFlagSet("test", flag.PanicOnError)) |
| 166 | assert.Equal(t, "consul", cfg1.Store) |
| 167 | |
| 168 | cfg2 := Config{} |
| 169 | cfg2.Store = "memberlist" |
| 170 | cfg2.RegisterFlagsWithPrefix("", "", flag.NewFlagSet("test", flag.PanicOnError)) |
| 171 | assert.Equal(t, "memberlist", cfg2.Store) |
| 172 | } |
| 173 | |
| 174 | type stringCodec struct { |
| 175 | value string |
nothing calls this directly
no test coverage detected