- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 42 for parseRule (0.18 sec)
-
pkg/util/iptables/testing/parse.go
// Used by ParseRule var boolPtrType = reflect.PointerTo(reflect.TypeOf(true)) var ipTablesValuePtrType = reflect.TypeOf((*IPTablesValue)(nil)) // ParseRule parses rule. If strict is false, it will parse the recognized // parameters and ignore unrecognized ones. If it is true, parsing will fail if there are // unrecognized parameters. func ParseRule(rule string, strict bool) (*Rule, error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 19 01:20:51 UTC 2023 - 11.6K bytes - Viewed (0) -
pkg/util/iptables/testing/parse_test.go
}, }, { name: "addRuleToChainRegex requires an actual rule, not just a chain name", rule: `-A KUBE-NODEPORTS`, err: `(no match rules)`, }, { name: "ParseRule only parses adds", rule: `-D KUBE-NODEPORTS -m comment --comment "ns2/svc2:p80 health check node port" -m tcp -p tcp --dport 30000 -j ACCEPT`, err: `(does not start with "-A CHAIN")`, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 19 01:20:51 UTC 2023 - 26K bytes - Viewed (0) -
src/go/printer/printer_test.go
// src is syntactically correct, and returns the resulting src or an error // if any. func format(src []byte, mode checkMode) ([]byte, error) { // parse src f, err := parser.ParseFile(fset, "", src, parser.ParseComments) if err != nil { return nil, fmt.Errorf("parse: %s\n%s", err, src) } // filter exports if necessary if mode&export != 0 { ast.FileExports(f) // ignore result
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 03 14:56:25 UTC 2024 - 20.4K bytes - Viewed (0) -
src/go/parser/parser_test.go
} { fset := token.NewFileSet() f, err := ParseFile(fset, "", src, 0) if err == nil { t.Errorf("ParseFile(%s) succeeded unexpectedly", src) continue } const wantErr = "expected selector or type assertion" if !strings.Contains(err.Error(), wantErr) { t.Errorf("ParseFile returned wrong error %q, want %q", err, wantErr) } var sel *ast.SelectorExpr
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 31 20:26:14 UTC 2024 - 24.6K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/parser_test.go
skip = flag.String("skip", "", "files matching this regular expression are skipped by TestStdLib") ) func TestParse(t *testing.T) { ParseFile(*src_, func(err error) { t.Error(err) }, nil, 0) } func TestVerify(t *testing.T) { ast, err := ParseFile(*src_, func(err error) { t.Error(err) }, nil, 0) if err != nil { return // error already reported } verifyPrint(t, *src_, ast) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 14 16:30:19 UTC 2024 - 12.2K bytes - Viewed (0) -
pkg/env/var.go
sort.Slice(sorted, func(i, j int) bool { return sorted[i].Name < sorted[j].Name }) return sorted } type Parseable interface { comparable } type GenericVar[T Parseable] struct { Var delegate specializedVar[T] } func Register[T Parseable](name string, defaultValue T, description string) GenericVar[T] { // Specialized cases
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 11.8K bytes - Viewed (0) -
src/net/netip/fuzz_test.go
"0xc0.0xa8.0x8c.0xff", // IPv4 in class B form. "192.168.12345", // IPv4 in class B form, with a small enough number to be // parseable as a regular dotted decimal field. "127.0.1", // IPv4 in class A form. "192.1234567", // IPv4 in class A form, with a small enough number to be // parseable as a regular dotted decimal field. "127.1", // IPv4 field has value >255. "192.168.300.1", // IPv4 with too many fields.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 20 23:46:23 UTC 2021 - 10.5K bytes - Viewed (0) -
pilot/pkg/model/jwks_resolver.go
// If the new key is not parseable as JSON return an error since we will not want to use this key log.Warnf("New JWKs public key JSON is not parseable: %s", newKeyString) return false, err } if err := json.Unmarshal([]byte(oldKeyString), &oldJWKs); err != nil { log.Warnf("Previous JWKs public key JSON is not parseable: %s", oldKeyString) return true, nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 23 09:47:21 UTC 2024 - 20.3K bytes - Viewed (0) -
src/go/types/stdlib_test.go
} const prefix = "-lang=" if strings.HasPrefix(arg, prefix) { goVersion = arg[len(prefix):] } } } } // parse and type-check file file, err := parser.ParseFile(fset, filename, nil, 0) if err == nil { conf := Config{ GoVersion: goVersion, Importer: stdLibImporter, } _, err = conf.Check(filename, fset, []*ast.File{file}, nil) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 19 04:39:56 UTC 2023 - 13.7K bytes - Viewed (0) -
src/internal/trace/summary_test.go
for _, region := range summary.Regions { basicGoroutineExecStatsChecks(t, ®ion.GoroutineExecStats) } } func summarizeTraceTest(t *testing.T, testPath string) *trace.Summary { trc, _, err := testtrace.ParseFile(testPath) if err != nil { t.Fatalf("malformed test %s: bad trace file: %v", testPath, err) } // Create the analysis state. s := trace.NewSummarizer() // Create a reader.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 13.4K bytes - Viewed (0)