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