MCPcopy
hub / github.com/dgraph-io/dgraph / String

Method String

x/x.go:910–915  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

908}
909
910func (t *Timer) String() string {
911 sort.Slice(t.records, func(i, j int) bool {
912 return t.records[i].Dur > t.records[j].Dur
913 })
914 return fmt.Sprintf("Timer Total: %s. Breakdown: %v", t.Total(), t.records)
915}
916
917// PredicateLang extracts the language from a predicate (or facet) name.
918// Returns the predicate and the language tag, if any.

Callers 15

RunMethod · 0.95
purgeBelowMethod · 0.95
RunMethod · 0.95
main.goFile · 0.45
jepsenURLFunction · 0.45
runJepsenTestFunction · 0.45
initFunction · 0.45
initSubcommandsFunction · 0.45
AuditWebSocketsFunction · 0.45
auditGrpcFunction · 0.45
getMaskedFieldVarNameFunction · 0.45
mainFunction · 0.45

Calls 2

TotalMethod · 0.95
SliceMethod · 0.80

Tested by 11

AddNumberOfTriplesFunction · 0.36
addTriplesFunction · 0.36
TestMaxPredicateSizeMethod · 0.36
TestMaxPredicateSizeFunction · 0.36
TestEncodeFunction · 0.36
generateRandomVectorsFunction · 0.36
TestChunkJSONMapAndArrayFunction · 0.36
TestJSONLoadSuccessFirstFunction · 0.36
TestJSONLoadSuccessAllFunction · 0.36