gitee.com/gricks/utils@v1.0.8/profile_test.go (about) 1 package utils 2 3 import ( 4 "os" 5 "testing" 6 7 . "github.com/smartystreets/goconvey/convey" 8 ) 9 10 func TestWriteGoroutine(t *testing.T) { 11 Convey("WriteGoroutine", t, func() { 12 WriteGoroutine("dump.goroutine", 1) 13 defer os.Remove("dump.goroutine") 14 }) 15 } 16 17 func TestWriteHeap(t *testing.T) { 18 Convey("WriteHeap", t, func() { 19 WriteHeap("dump.heap", 1) 20 defer os.Remove("dump.heap") 21 }) 22 }