Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestPanicEvent (0.3 sec)

  1. src/internal/trace/event_test.go

    // Copyright 2023 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package trace
    
    import "testing"
    
    func TestPanicEvent(t *testing.T) {
    	// Use a sync event for this because it doesn't have any extra metadata.
    	ev := syncEvent(nil, 0)
    
    	mustPanic(t, func() {
    		_ = ev.Range()
    	})
    	mustPanic(t, func() {
    		_ = ev.Metric()
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 784 bytes
    - Viewed (0)
Back to top