(t *testing.T)
| 97 | } |
| 98 | |
| 99 | func TestMaskSecret(t *testing.T) { |
| 100 | assert.Equal(t, "<empty>", MaskSecret("")) |
| 101 | assert.Equal(t, "****", MaskSecret("a")) |
| 102 | assert.Equal(t, "****", MaskSecret("abcd")) |
| 103 | assert.Equal(t, "****", MaskSecret("mysecretpassword")) |
| 104 | } |
| 105 | |
| 106 | func TestGetMasterKey_EnvVar(t *testing.T) { |
| 107 | // Clear any cached master key first |
nothing calls this directly
no test coverage detected