- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 2,044 for IsSwitch (0.21 sec)
-
tools/istio-iptables/pkg/dependencies/implementation_linux_test.go
original := file.AsStringOrFail(t, "/etc/nsswitch.conf") var sandboxed string originalNetNS, err := netns.Get() assert.NoError(t, err) var sandboxedNetNS netns.NsHandle // Due to unshare-go imports above, this can run assert.NoError(t, runInSandbox("", func() error { // We should have overwritten this file with /dev/null sandboxed = file.AsStringOrFail(t, "/etc/nsswitch.conf") sandboxedNetNS, err = netns.Get()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Feb 26 20:05:40 UTC 2024 - 1.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tests/end2end/control_flow_v1.pbtxt
key: "shape" value { shape { } } } } node { name: "cond/Switch" op: "Switch" input: "Placeholder_1" input: "Placeholder_1" attr { key: "T" value { type: DT_BOOL } } } node { name: "cond/switch_t" op: "Identity" input: "cond/Switch:1" attr { key: "T" value { type: DT_BOOL } } } node {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 23 21:23:31 UTC 2020 - 3.6K bytes - Viewed (0) -
src/go/printer/testdata/statements.golden
use(x) } } // Formatting of switch-statement headers. func _() { switch { } switch { } // no semicolon printed switch expr { } switch expr { } // no semicolon printed switch expr { } // no parens printed switch expr { } // no semicolon and parens printed switch x := expr; { default: use( x) } switch x := expr; expr { default: use(x) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 12 18:18:12 UTC 2014 - 8K bytes - Viewed (0) -
test/switch7.go
// Verify that type switch statements with duplicate cases are detected // by the compiler. // Does not compile. package main import "fmt" func f4(e interface{}) { switch e.(type) { case int: case int: // ERROR "duplicate case int in type switch" case int64: case error: case error: // ERROR "duplicate case error in type switch" case fmt.Stringer:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 14 21:28:48 UTC 2020 - 796 bytes - Viewed (0) -
test/switch5.go
case 5.0: // ERROR "duplicate case (5 in switch)?" } } func f2(s string) { switch s { case "": case "": // ERROR "duplicate case (.. in switch)?" case "abc": case "abc": // ERROR "duplicate case (.abc. in switch)?" } } func f3(e interface{}) { switch e { case 0: case 0: // ERROR "duplicate case (0 in switch)?" case int64(0): case float32(10):
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 14 21:28:48 UTC 2020 - 2.3K bytes - Viewed (0) -
src/cmd/gofmt/testdata/typeswitch.input
type switch header or in the case. See also issue 4470. */ package p func f() { var x interface{} switch x.(type) { // should remain the same } switch (x.(type)) { // should become: switch x.(type) { } switch x.(type) { // should remain the same case int: } switch (x.(type)) { // should become: switch x.(type) { case int: } switch x.(type) { // should remain the same case []int:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 15 17:17:30 UTC 2022 - 1.4K bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue43110.go
type P *struct{} func _() { // want an error even if the switch is empty var a struct{ _ func() } switch a /* ERROR "cannot switch on a" */ { } switch a /* ERROR "cannot switch on a" */ { case a: // no follow-on error here } // this is ok because f can be compared to nil var f func() switch f { } switch f { case nil: } switch (func())(nil) { case nil: }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:27 UTC 2023 - 794 bytes - Viewed (0) -
src/cmd/gofmt/testdata/typeswitch.golden
type switch header or in the case. See also issue 4470. */ package p func f() { var x interface{} switch x.(type) { // should remain the same } switch x.(type) { // should become: switch x.(type) { } switch x.(type) { // should remain the same case int: } switch x.(type) { // should become: switch x.(type) { case int: } switch x.(type) { // should remain the same case []int: }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 15 17:17:30 UTC 2022 - 1.4K bytes - Viewed (0) -
test/switch3.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 15 19:43:32 UTC 2020 - 1.2K bytes - Viewed (0) -
test/typeparam/issue51522b.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 10 19:30:33 UTC 2022 - 730 bytes - Viewed (0)