package config import ( "encoding/json" "testing" ) func TestExtendDecodesStorageRootFromGoAdminJSONReader(t *testing.T) { var config Extend if err := json.Unmarshal([]byte(`{"chorus":{"storage_root":"../var/storage"}}`), &config); err != nil { t.Fatal(err) } if config.Chorus.StorageRoot != "../var/storage" { t.Fatalf("storage root = %q", config.Chorus.StorageRoot) } }