Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestDecodeBounds (0.12 sec)

  1. src/encoding/base64/base64_test.go

    		case CorruptInputError:
    			testEqual(t, "Corruption in %q at offset %v, want %v", tc.input, int(err), tc.offset)
    		default:
    			t.Error("Decoder failed to detect corruption in", tc)
    		}
    	}
    }
    
    func TestDecodeBounds(t *testing.T) {
    	var buf [32]byte
    	s := StdEncoding.EncodeToString(buf[:])
    	defer func() {
    		if err := recover(); err != nil {
    			t.Fatalf("Decode panicked unexpectedly: %v\n%s", err, debug.Stack())
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Sep 03 18:57:29 UTC 2023
    - 15.9K bytes
    - Viewed (0)
Back to top