MCPcopy Create free account
hub / github.com/block/buzz / listMockProfiles

Function listMockProfiles

desktop/src/testing/e2eBridge.ts:1811–1821  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1809}
1810
1811function listMockProfiles(): RawProfile[] {
1812 const pubkeys = new Set<string>([
1813 ...mockProfiles.keys(),
1814 ...mockDisplayNames.keys(),
1815 DEFAULT_REAL_IDENTITY.pubkey,
1816 ]);
1817
1818 return [...pubkeys]
1819 .map((pubkey) => getMockProfileByPubkey(pubkey))
1820 .filter((profile): profile is RawProfile => profile !== null);
1821}
1822
1823function listMockChannels(config?: E2eConfig): RawChannelWithMembership[] {
1824 return mockChannels.map((channel) => toRawChannel(channel, config));

Callers 1

handleSearchUsersFunction · 0.85

Calls 2

getMockProfileByPubkeyFunction · 0.85
keysMethod · 0.80

Tested by

no test coverage detected