MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / Len

Method Len

pkg/event/batch.go:32–32  ·  view source on GitHub ↗

Len returns the length of the batch.

()

Source from the content-addressed store, hash-verified

30
31// Len returns the length of the batch.
32func (b *Batch) Len() int64 { return int64(len(b.Events)) }
33
34// MarshalJSON serializes the batch of events to JSON format.
35func (b *Batch) MarshalJSON() []byte {

Callers 15

StopMethod · 0.95
runMethod · 0.95
TestBatchMarshalJSONFunction · 0.95
TestTransformFunction · 0.45
TestTransformFunction · 0.45
adjustTokenPrivilegesFunction · 0.45
TestWriteFunction · 0.45
TestRemoveThreadFunction · 0.45
TestRemoveModuleFunction · 0.45
TestPSMarshalerFunction · 0.45
TestPSMarshalerWithPEFunction · 0.45
UnmarshalMethod · 0.45

Calls

no outgoing calls

Tested by 15

TestBatchMarshalJSONFunction · 0.76
TestTransformFunction · 0.36
TestTransformFunction · 0.36
TestWriteFunction · 0.36
TestRemoveThreadFunction · 0.36
TestRemoveModuleFunction · 0.36
TestPSMarshalerFunction · 0.36
TestPSMarshalerWithPEFunction · 0.36
TestPSArgsFunction · 0.36
TestRunSequenceRuleFunction · 0.36