MCPcopy
hub / github.com/grafana/tempo / TestGetStorageAccountNameInEnv

Function TestGetStorageAccountNameInEnv

tempodb/backend/azure/azure_helpers_test.go:26–33  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

24}
25
26func TestGetStorageAccountNameInEnv(t *testing.T) {
27 cfg := Config{}
28 os.Setenv("AZURE_STORAGE_ACCOUNT", TestStorageAccountName)
29 defer os.Unsetenv("AZURE_STORAGE_ACCOUNT")
30
31 actual := getStorageAccountName(&cfg)
32 assert.Equal(t, TestStorageAccountName, actual)
33}
34
35func TestGetStorageAccountNameNotSet(t *testing.T) {
36 cfg := Config{}

Callers

nothing calls this directly

Calls 2

getStorageAccountNameFunction · 0.85
EqualMethod · 0.45

Tested by

no test coverage detected