MCPcopy
hub / github.com/moonD4rk/HackBrowserData / TestNewMasterKeys_AllNilRetrievers

Function TestNewMasterKeys_AllNilRetrievers

masterkey/masterkeys_test.go:143–150  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

141}
142
143func TestNewMasterKeys_AllNilRetrievers(t *testing.T) {
144 // All slots nil — macOS/Linux with no retriever wiring, or Windows with neither tier set up.
145 keys, err := NewMasterKeys(Retrievers{}, Hints{KeychainLabel: "chrome", LocalStatePath: "/tmp/Local State"})
146 require.NoError(t, err)
147 assert.Nil(t, keys.V10)
148 assert.Nil(t, keys.V11)
149 assert.Nil(t, keys.V20)
150}
151
152func TestNewMasterKeys_PartialNil(t *testing.T) {
153 // Only V10 wired — typical macOS shape. V11/V20 left nil.

Callers

nothing calls this directly

Calls 1

NewMasterKeysFunction · 0.85

Tested by

no test coverage detected