OXIESEC PANEL
- Current Dir:
/
/
opt
/
golang
/
1.22.0
/
src
/
context
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/02/2024 06:09:55 PM
rwxr-xr-x
📄
afterfunc_test.go
3.43 KB
02/02/2024 06:09:55 PM
rw-r--r--
📄
benchmark_test.go
3.75 KB
02/02/2024 06:09:55 PM
rw-r--r--
📄
context.go
23.73 KB
02/02/2024 06:09:55 PM
rw-r--r--
📄
context_test.go
7.74 KB
02/02/2024 06:09:55 PM
rw-r--r--
📄
example_test.go
6.74 KB
02/02/2024 06:09:55 PM
rw-r--r--
📄
net_test.go
538 bytes
02/02/2024 06:09:55 PM
rw-r--r--
📄
x_test.go
26.08 KB
02/02/2024 06:09:55 PM
rw-r--r--
Editing: net_test.go
Close
// Copyright 2016 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 context_test import ( "context" "net" "testing" ) func TestDeadlineExceededIsNetError(t *testing.T) { err, ok := context.DeadlineExceeded.(net.Error) if !ok { t.Fatal("DeadlineExceeded does not implement net.Error") } if !err.Timeout() || !err.Temporary() { t.Fatalf("Timeout() = %v, Temporary() = %v, want true, true", err.Timeout(), err.Temporary()) } }