- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for PStr (0.03 sec)
-
operator/pkg/validate/validate.go
pstr := path.String() msg := fmt.Sprintf("validate %s:%v(%T) ", pstr, val, val) if util.IsValueNil(val) || util.IsEmptyString(val) { if checkRequired && requiredValues[pstr] { return util.NewErrs(fmt.Errorf("field %s is required but not set", util.ToYAMLPathString(pstr))) } msg += fmt.Sprintf("validate %s: OK (empty value)", pstr) scope.Debug(msg) return nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jan 12 16:04:15 UTC 2023 - 7.7K bytes - Viewed (0) -
operator/pkg/validate/validate_values.go
} // ValuesValidate validates the values of the tree using the supplied Func func ValuesValidate(validations map[string]ValidatorFunc, node any, path util.Path) (errs util.Errors) { pstr := path.String() scope.Debugf("ValuesValidate %s", pstr) vf := validations[pstr] if vf != nil { errs = util.AppendErrs(errs, vf(path, node)) } nn, ok := node.(map[string]any) if !ok { // Leaf, nothing more to recurse. return errs }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 25 19:30:47 UTC 2022 - 2.3K bytes - Viewed (0) -
operator/pkg/validate/common.go
// get validation function for specified path func getValidationFuncForPath(validations map[string]ValidatorFunc, path util.Path) (ValidatorFunc, bool) { pstr := path.String() // fast match if !strings.Contains(pstr, "[") && !strings.Contains(pstr, "]") { vf, ok := validations[pstr] return vf, ok } for p, vf := range validations { ps := strings.Split(p, ".") if len(ps) != len(path) { continue }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Aug 10 15:35:03 UTC 2023 - 11K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/mod/sumdb/tlog/tile.go
for n >= pathBase { n /= pathBase nStr = fmt.Sprintf("x%03d/%s", n%pathBase, nStr) } pStr := "" if t.W != 1<<uint(t.H) { pStr = fmt.Sprintf(".p/%d", t.W) } var L string if t.L == -1 { L = "data" } else { L = fmt.Sprintf("%d", t.L) } return fmt.Sprintf("tile/%d/%s/%s%s", t.H, L, nStr, pStr) } // ParseTilePath parses a tile coordinate path.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 13K bytes - Viewed (0) -
testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-internal.h
TearDownTestCaseFunc tear_down_tc, TestFactoryBase* factory); // If *pstr starts with the given prefix, modifies *pstr to be right // past the prefix and returns true; otherwise leaves *pstr unchanged // and returns false. None of pstr, *pstr, and prefix can be NULL. GTEST_API_ bool SkipPrefix(const char* prefix, const char** pstr); #if GTEST_HAS_TYPED_TEST || GTEST_HAS_TYPED_TEST_P
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 43.1K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/internal/gtest-internal.h
TearDownTestCaseFunc tear_down_tc, TestFactoryBase* factory); // If *pstr starts with the given prefix, modifies *pstr to be right // past the prefix and returns true; otherwise leaves *pstr unchanged // and returns false. None of pstr, *pstr, and prefix can be NULL. GTEST_API_ bool SkipPrefix(const char* prefix, const char** pstr); #if GTEST_HAS_TYPED_TEST || GTEST_HAS_TYPED_TEST_P
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 43.1K bytes - Viewed (0) -
src/encoding/xml/marshal_test.go
Bool: true, Str: "str", Bytes: []byte("byt"), PStr: &empty, Ptr: &PresenceTest{}, }, ExpectXML: `<OmitFieldTest>` + `<Int>8</Int>` + `<int>9</int>` + `<Float>23.5</Float>` + `<Uint8>255</Uint8>` + `<Bool>true</Bool>` + `<Str>str</Str>` + `<Bytes>byt</Bytes>` + `<PStr></PStr>` + `<Ptr></Ptr>` + `</OmitFieldTest>`, }, {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 18:46:41 UTC 2024 - 66K bytes - Viewed (0)