MCPcopy Create free account
hub / github.com/coder/coder / Len

Method Len

agent/filefinder/delta.go:96–96  ·  view source on GitHub ↗

Len returns the number of live (non-deleted) documents.

()

Source from the content-addressed store, hash-verified

94
95// Len returns the number of live (non-deleted) documents.
96func (idx *Index) Len() int { return len(idx.byPath) }
97
98func copyPostings[K comparable](m map[K][]uint32) map[K][]uint32 {
99 cp := make(map[K][]uint32, len(m))

Callers 15

TestIndex_AddAndLenFunction · 0.95
TestIndex_RemoveFunction · 0.95
TestIndex_AddOverwriteFunction · 0.95
TestBasicFunction · 0.45
TestBasicAndMetadataFunction · 0.45
TestRecordPromptFunction · 0.45
TestRecordToolUsageFunction · 0.45
TestRecordTokenUsageFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestIndex_AddAndLenFunction · 0.76
TestIndex_RemoveFunction · 0.76
TestIndex_AddOverwriteFunction · 0.76
TestBasicFunction · 0.36
TestBasicAndMetadataFunction · 0.36
TestRecordPromptFunction · 0.36
TestRecordToolUsageFunction · 0.36
TestRecordTokenUsageFunction · 0.36