- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 284 for setZero (0.23 sec)
-
platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/ManagedNamedTest.groovy
then: registry.realize("foo", NonNamedThing).name == null } @Managed static abstract class NonNamedThingNoSetter { abstract String getName() } def "name requires setter if not named"() { given: registry.registerWithInitializer("bar", NonNamedThingNoSetter, nodeInitializerRegistry) when: registry.realize("bar", NonNamedThingNoSetter) then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 2.2K bytes - Viewed (0) -
pkg/version/cobra_test.go
remoteCmd, false, }, } for _, v := range cases { t.Run(v.args, func(t *testing.T) { v.cmd.SetArgs(strings.Split(v.args, " ")) var out bytes.Buffer v.cmd.SetOut(&out) v.cmd.SetErr(&out) err := v.cmd.Execute() if !v.expectFail && err != nil { t.Errorf("Got %v, expecting success", err) } if v.expectFail && err == nil { t.Errorf("Expected failure, got success") }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Aug 29 14:15:26 UTC 2023 - 8.5K bytes - Viewed (0) -
subprojects/core-api/src/main/java/org/gradle/api/tasks/Input.java
/** * <p>Attached to a task property to indicate that the property specifies some input value for the task.</p> * * <p>This annotation should be attached to the getter method in Java or the property in Groovy. * Annotations on setters or just the field in Java are ignored.</p> * * <p>This will cause the task to be considered out-of-date when the property has changed.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 05 19:36:14 UTC 2023 - 1.6K bytes - Viewed (0) -
platforms/software/platform-base/src/main/java/org/gradle/platform/base/internal/VariantAspectExtractionStrategy.java
for (PropertyAccessorExtractionContext accessor : propertyResult.getAccessors()) { if (accessor.isAnnotationPresent(Variant.class)) { if (accessor.getAccessorType() == PropertyAccessorType.SETTER) { throw invalidProperty(extractionContext, property, "@Variant annotation is only allowed on getter methods"); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Oct 11 12:16:09 UTC 2023 - 3.5K bytes - Viewed (0) -
pilot/pkg/config/kube/gateway/conditions.go
// Sort keys for deterministic ordering for _, k := range slices.Sort(maps.Keys(conditions)) { cond := conditions[k] setter := kstatus.UpdateConditionIfChanged if cond.setOnce != "" { setter = func(conditions []metav1.Condition, condition metav1.Condition) []metav1.Condition { return kstatus.CreateCondition(conditions, condition, cond.setOnce) } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 13:05:41 UTC 2024 - 14.4K bytes - Viewed (0) -
subprojects/core-api/src/main/java/org/gradle/api/tasks/CompileClasspath.java
* <li>Changes to directories, including directory entries in Jars.</li> * </ul> * * <p>This annotation should be attached to the getter method in Java or the property in Groovy. * Annotations on setters or just the field in Java are ignored.</p> * * <p><strong>Note:</strong> to stay compatible with versions prior to Gradle 3.4, classpath * properties need to be annotated with {@literal @}{@link InputFiles} as well.</p> *
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Feb 01 10:29:21 UTC 2018 - 2.3K bytes - Viewed (0) -
pkg/keepalive/options_test.go
func TestSetConnectionAgeCommandlineOptions(t *testing.T) { ko := keepalive.DefaultOption() cmd := &cobra.Command{} ko.AttachCobraFlags(cmd) buf := new(bytes.Buffer) cmd.SetOut(buf) cmd.SetErr(buf) sec := 1 * time.Second cmd.SetArgs([]string{ fmt.Sprintf("--keepaliveMaxServerConnectionAge=%v", sec), }) if err := cmd.Execute(); err != nil { t.Errorf("%s %s", t.Name(), err.Error()) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jun 29 15:00:10 UTC 2020 - 1.6K bytes - Viewed (0) -
testing/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/NodePluginsSmokeTest.groovy
(methodShouldNotBeAnnotatedMessage {type('com.moowork.gradle.node.npm.NpmSetupTask').kind('setter').method('setArgs').annotation('Internal').includeLink()}): ERROR, (missingAnnotationMessage { type('com.moowork.gradle.node.yarn.YarnSetupTask').property('args').missingInputOrOutput().includeLink() }): ERROR,
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 2.1K bytes - Viewed (0) -
analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/containingDeclarationProvider/AbstractContainingDeclarationProviderForSetterParameterTest.kt
analyseForTest(context) { declaration -> val propertySymbol = (declaration as KtProperty).getVariableSymbol() as KaPropertySymbol val setterSymbol = propertySymbol.setter!! val setterParameterSymbol = setterSymbol.valueParameters.single() testServices.assertions.assertEquals(propertySymbol, setterSymbol.getContainingSymbol())
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 22 06:28:34 UTC 2024 - 1.6K bytes - Viewed (0) -
subprojects/core-api/src/main/java/org/gradle/api/tasks/SkipWhenEmpty.java
* * <p>This annotation should be attached to the getter method in Java or the property in Groovy. * Annotations on setters or just the field in Java are ignored.</p> * * <ul><li>{@link org.gradle.api.tasks.InputFiles}</li> * * <li>{@link org.gradle.api.tasks.InputDirectory}</li> </ul> */ @Documented
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Jan 26 09:19:43 UTC 2023 - 1.8K bytes - Viewed (0)