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

Function TestGetStorageAccountKeyInEnv

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

Source from the content-addressed store, hash-verified

50}
51
52func TestGetStorageAccountKeyInEnv(t *testing.T) {
53 cfg := Config{}
54 os.Setenv("AZURE_STORAGE_KEY", TestStorageAccountKey)
55 defer os.Unsetenv("AZURE_STORAGE_KEY")
56
57 actual := getStorageAccountKey(&cfg)
58 assert.Equal(t, TestStorageAccountKey, actual)
59}
60
61func TestGetStorageAccountKeyNotSet(t *testing.T) {
62 cfg := Config{}

Callers

nothing calls this directly

Calls 2

getStorageAccountKeyFunction · 0.85
EqualMethod · 0.45

Tested by

no test coverage detected