MCPcopy Index your code
hub / github.com/scality/cloudserver / getFirstAndOnlyAccount

Function getFirstAndOnlyAccount

tests/unit/auth/in_memory/backend.js:14–16  ·  view source on GitHub ↗
(authdata)

Source from the content-addressed store, hash-verified

12const defaultUserName = 'CustomAccount';
13
14function getFirstAndOnlyAccount(authdata) {
15 return authdata.accounts[0];
16}
17
18describe('buildAuthDataAccount function', () => {
19 it('should return authdata with the default user name if no user ' +

Callers 1

backend.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected