blob: 43e7741ece7b588d36079dd8630fc6a10b9808e9 [file] [log] [blame]
// Copyright 2023 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import (
"reflect"
"testing"
)
func TestConfig(t *testing.T) {
want := &config{
Port: "8080",
ProjectID: "go-telemetry",
StorageEmulatorHost: "localhost:8081",
LocalStorage: ".localstorage",
UploadBucket: "local-telemetry-uploaded",
}
if got := newConfig(); !reflect.DeepEqual(got, want) {
t.Errorf("Config() = %v, want %v", got, want)
}
}