mirror of
https://github.com/spf13/viper
synced 2024-11-16 18:07:02 +00:00
fix test after function rename
This commit is contained in:
parent
38c6d9eca3
commit
670867b0e9
1 changed files with 3 additions and 3 deletions
|
@ -129,7 +129,7 @@ func TestRecursiveAliases(t *testing.T) {
|
||||||
RegisterAlias("Roo", "baz")
|
RegisterAlias("Roo", "baz")
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestIntoStruct(t *testing.T) {
|
func TestMarshal(t *testing.T) {
|
||||||
SetDefault("port", 1313)
|
SetDefault("port", 1313)
|
||||||
Set("name", "Steve")
|
Set("name", "Steve")
|
||||||
|
|
||||||
|
@ -140,7 +140,7 @@ func TestIntoStruct(t *testing.T) {
|
||||||
|
|
||||||
var C config
|
var C config
|
||||||
|
|
||||||
err := GetAllIntoStruct(&C)
|
err := Marshal(&C)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("unable to decode into struct, %v", err)
|
t.Fatalf("unable to decode into struct, %v", err)
|
||||||
}
|
}
|
||||||
|
@ -148,7 +148,7 @@ func TestIntoStruct(t *testing.T) {
|
||||||
assert.Equal(t, &C, &config{Name: "Steve", Port: 1313})
|
assert.Equal(t, &C, &config{Name: "Steve", Port: 1313})
|
||||||
|
|
||||||
Set("port", 1234)
|
Set("port", 1234)
|
||||||
err = GetAllIntoStruct(&C)
|
err = Marshal(&C)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("unable to decode into struct, %v", err)
|
t.Fatalf("unable to decode into struct, %v", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue