func TestJSONTraceHandler(t *testing.T) { … }
func checkSyscalls(t *testing.T, data format.Data) { … }
type eventFilterFn …
func filterEventName(name string) eventFilterFn { … }
func filterGoRoutineName(name string) eventFilterFn { … }
func parseGoroutineName(e *format.Event) string { … }
func filterBlocked(blocked string) eventFilterFn { … }
func filterStackRootFunc(name string) eventFilterFn { … }
func filterViewerTrace(data format.Data, fns ...eventFilterFn) (filtered format.Data) { … }
func stackFrames(data *format.Data, stackID int) (frames []string) { … }
func checkProcStartStop(t *testing.T, data format.Data) { … }
func checkNetworkUnblock(t *testing.T, data format.Data) { … }
func checkExecutionTimes(t *testing.T, data format.Data) { … }
func checkMetaNamesEmitted(t *testing.T, data format.Data, category string, want []string) { … }
func metaEventNameArgs(category string, data format.Data) (names []string) { … }
func checkPlausibleHeapMetrics(t *testing.T, data format.Data) { … }
func heapMetrics(data format.Data) (metrics []format.HeapCountersArg) { … }
func recordJSONTraceHandlerResponse(t *testing.T, parsed *parsedTrace) format.Data { … }
func sumExecutionTime(data format.Data) (sum time.Duration) { … }
func getTestTrace(t *testing.T, testPath string) *parsedTrace { … }