(t *testing.T)
| 521 | } |
| 522 | |
| 523 | func TestAliases(t *testing.T) { |
| 524 | v := New() |
| 525 | v.Set("age", 40) |
| 526 | v.RegisterAlias("years", "age") |
| 527 | assert.Equal(t, 40, v.Get("years")) |
| 528 | v.Set("years", 45) |
| 529 | assert.Equal(t, 45, v.Get("age")) |
| 530 | } |
| 531 | |
| 532 | func TestAliasInConfigFile(t *testing.T) { |
| 533 | v := New() |
nothing calls this directly
no test coverage detected