MCPcopy Index your code
hub / github.com/PasarGuard/node / TestBuildUsersFromChunksMissingLast

Function TestBuildUsersFromChunksMissingLast

controller/users_chunk_test.go:30–35  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

28}
29
30func TestBuildUsersFromChunksMissingLast(t *testing.T) {
31 _, err := BuildUsersFromChunks(map[uint64][]*common.User{}, 0, false)
32 if err == nil || !strings.Contains(err.Error(), "missing final chunk indicator") {
33 t.Fatalf("expected missing final chunk indicator error, got: %v", err)
34 }
35}
36
37func TestBuildUsersFromChunksMissingChunk(t *testing.T) {
38 chunks := map[uint64][]*common.User{

Callers

nothing calls this directly

Calls 2

BuildUsersFromChunksFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected