(t *testing.T)
| 331 | } |
| 332 | |
| 333 | func TestGetCachedMasterKey_EnvVar(t *testing.T) { |
| 334 | ClearMasterKey() |
| 335 | t.Setenv(keyEnvVar, "cachedEnvPassword") |
| 336 | |
| 337 | key, err := GetCachedMasterKey() |
| 338 | require.NoError(t, err) |
| 339 | assert.NotNil(t, key) |
| 340 | assert.Equal(t, 32, len(key)) |
| 341 | |
| 342 | ClearMasterKey() |
| 343 | } |
| 344 | |
| 345 | func TestGetCachedMasterKey_UsesCache(t *testing.T) { |
| 346 | ClearMasterKey() |
nothing calls this directly
no test coverage detected