Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestPanicWithDirectlyPrintableCustomTypes (0.46 sec)

  1. src/runtime/panic_test.go

    import (
    	"strings"
    	"testing"
    )
    
    // Test that panics print out the underlying value
    // when the underlying kind is directly printable.
    // Issue: https://golang.org/issues/37531
    func TestPanicWithDirectlyPrintableCustomTypes(t *testing.T) {
    	tests := []struct {
    		name            string
    		wantPanicPrefix string
    	}{
    		{"panicCustomBool", `panic: main.MyBool(true)`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 1.7K bytes
    - Viewed (0)
Back to top