Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for invalidRule (0.17 sec)

  1. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/RuleSourceAppliedToModelMapElementIntegrationTest.groovy

            when:
            buildScript '''
                class InvalidRuleSource extends RuleSource {
                    @Mutate
                    String invalidRule(Task echo) {
                    }
                }
    
                class Rules extends RuleSource {
                    @Mutate
                    void addTasks(ModelMap<Task> tasks) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/repositories/metadata/GradleModuleMetadataCompatibilityConverter.java

                        }
                    }
                    if (invalidFiles != null) {
                        for (ComponentVariant.File invalidFile : invalidFiles) {
                            mutableVariant.removeFile(invalidFile);
                            mutableVariant.addFile(invalidFile.getName(), invalidFile.getUri().replace("SNAPSHOT", uniqueIdentifier.getTimestamp()));
                        }
                    }
                }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  3. pkg/util/filesystem/util_test.go

    		label          string
    		listenOnSocket bool
    		expectSocket   bool
    		expectError    bool
    		invalidFile    bool
    	}{
    		{
    			label:          "Domain Socket file",
    			listenOnSocket: true,
    			expectSocket:   true,
    			expectError:    false,
    		},
    		{
    			label:       "Non Existent file",
    			invalidFile: true,
    			expectError: true,
    		},
    		{
    			label:          "Regular file",
    			listenOnSocket: false,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 10 17:13:59 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/apis/audit/validation/validation_test.go

    	for i, policy := range successCases {
    		if errs := ValidatePolicy(&policy); len(errs) != 0 {
    			t.Errorf("[%d] Expected policy %#v to be valid: %v", i, policy, errs)
    		}
    	}
    
    	invalidRules := []audit.PolicyRule{
    		{}, // Empty rule (missing Level)
    		{ // Missing level
    			Verbs:      []string{"get"},
    			Resources:  []audit.GroupResources{{Resources: []string{"secrets"}}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 02 07:48:42 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  5. tests/integration/pilot/analyze_test.go

    			// Parse error as the yaml file itself is not valid yaml.
    			output, err = istioctlSafe(t, istioCtl, ns.Name(), false, invalidFile)
    			g.Expect(strings.Join(output, "\n")).To(ContainSubstring("Error(s) adding files"))
    			g.Expect(strings.Join(output, "\n")).To(ContainSubstring(fmt.Sprintf("errors parsing content \"%s\"", invalidFile)))
    
    			g.Expect(err).To(MatchError(analyze.FileParseError{}))
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  6. src/bytes/bytes_test.go

    	if string(m) != expect {
    		t.Errorf("drop: expected %q got %q", expect, m)
    	}
    
    	// 6. Invalid rune
    	invalidRune := func(r rune) rune {
    		return utf8.MaxRune + 1
    	}
    	m = Map(invalidRune, []byte("x"))
    	expect = "\uFFFD"
    	if string(m) != expect {
    		t.Errorf("invalidRune: expected %q got %q", expect, m)
    	}
    }
    
    func TestToUpper(t *testing.T) { runStringTests(t, ToUpper, "ToUpper", upperTests) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 56.5K bytes
    - Viewed (0)
Back to top