Skip to content

Commit

Permalink
feat: add test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
clement2026 committed Aug 23, 2024
1 parent 361e3df commit 78ccd2f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions moderato/metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,20 @@ func TestItems(t *testing.T) {
"10000000 6.67% 100% 10000000 6.67% syscall.syscall",
},
},
{
"./test.goroutine.019.pb.gz",
[]string{"37 total",
"34 91.89% 91.89% 34 91.89% runtime.gopark",
"1 2.70% 94.59% 1 2.70% runtime.goroutineProfileWithLabels",
},
},
{
"./test.pprof.alloc_objects.alloc_space.inuse_objects.inuse_space.015.pb.gz",
[]string{"160278937496 total",
"67097020760 41.86% 41.86% 67097020760 41.86% go.etcd.io/raft/v3.(*MemoryStorage).Append",
"52698228258 32.88% 74.74% 52698228258 32.88% go.etcd.io/raft/v3.(*MemoryStorage).Compact",
},
},
}
for _, tc := range tt {
t.Run("", func(t *testing.T) {
Expand Down
Binary file added moderato/test.goroutine.019.pb.gz
Binary file not shown.
Binary file not shown.

0 comments on commit 78ccd2f

Please sign in to comment.