- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 24 for mapValue (0.46 sec)
-
staging/src/k8s.io/apiserver/pkg/cel/lazy/lazy.go
"k8s.io/apiserver/pkg/cel" ) type GetFieldFunc func(*MapValue) ref.Val var _ ref.Val = (*MapValue)(nil) var _ traits.Mapper = (*MapValue)(nil) // MapValue is a map that lazily evaluate its value when a field is first accessed. // The map value is not designed to be thread-safe. type MapValue struct { typeValue *types.Type // values are previously evaluated values obtained from callbacks
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 23 21:31:27 UTC 2023 - 4.9K bytes - Viewed (0) -
src/internal/fmtsort/sort.go
func Sort(mapValue reflect.Value) SortedMap { if mapValue.Type().Kind() != reflect.Map { return nil } // Note: this code is arranged to not panic even in the presence // of a concurrent map update. The runtime is responsible for // yelling loudly if that happens. See issue 33275. n := mapValue.Len() sorted := make(SortedMap, 0, n) iter := mapValue.MapRange() for iter.Next() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 19:31:45 UTC 2024 - 4.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/lazy/lazy_test.go
activation := &testActivation{variables: variablesMap} // add foo as a string variablesType.Fields["foo"] = apiservercel.NewDeclField("foo", apiservercel.StringType, true, nil, nil) variablesMap.Append("foo", func(_ *MapValue) ref.Val { return types.String("foo-string") }) exp := "variables.foo == 'foo-string'" v, err := compileAndRun(env, activation, exp) if err != nil { t.Fatalf("%q: %v", exp, err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 4.6K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/MappingProvider.java
} return ExecutionTimeValue.value(mapValue(context, value.toValue())); } } @Nonnull @Override protected Value<OUT> mapValue(EvaluationContext.ScopeContext context, Value<? extends IN> value) { Value<OUT> transformedValue = super.mapValue(context, value); // Check MappingProvider contract with regard to the transform
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jan 17 23:22:41 UTC 2024 - 3.4K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/TransformBackedProvider.java
return ExecutionTimeValue.value(mapValue(context, value.toValue())); } } @Override protected Value<? extends OUT> calculateOwnValue(ValueConsumer consumer) { try (EvaluationContext.ScopeContext context = openScope()) { beforeRead(context); Value<? extends IN> value = provider.calculateValue(consumer); return mapValue(context, value); } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jan 17 23:22:41 UTC 2024 - 4.1K bytes - Viewed (0) -
testing/integ-test/src/crossVersionTest/groovy/org/gradle/integtests/AbstractTaskSubclassingBinaryCompatibilityCrossVersionSpec.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 8.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/composition.go
return cost } type variableAccessor struct { name string result CompilationResult activation any context *compositionContext } func (a *variableAccessor) Callback(_ *lazy.MapValue) ref.Val { if a.result.Error != nil { return types.NewErr("composited variable %q fails to compile: %v", a.name, a.result.Error) } v, details, err := a.result.Program.ContextEval(a.context, a.activation)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 13 21:06:39 UTC 2024 - 7.4K bytes - Viewed (0) -
src/internal/fuzz/mutator.go
if v <= -maxValue { continue } if v < 0 && maxValue+v < max { // Don't let v drop below -maxValue max = maxValue + v } v -= int64(1 + m.rand(int(max))) return v } } } func (m *mutator) mutateUInt(v, maxValue uint64) uint64 { var max uint64 for { max = 100 switch m.rand(2) { case 0: // Add a random number if v >= maxValue { continue
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 20:01:34 UTC 2023 - 6.6K bytes - Viewed (0) -
testing/public-api-tests/src/integTest/groovy/org/gradle/api/PublicApiIntegrationTest.groovy
abstract class CustomTask : DefaultTask() { @get:Input abstract val mapValues: MapProperty<String, Int> @TaskAction fun customAction() { println("Hello from custom task") // println("- mapValues['alma'] = \${mapValues['alma']}") } } """ expect:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 08:43:08 UTC 2024 - 8.8K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/AlphabeticalAcceptedApiChangesTask.kt
val sortedChanges = originalChanges.mapValues { sortChanges(it.value) } val mismatches = originalChanges.mapValues { findMismatches(it.value, sortedChanges[it.key]!!) }.filterValues { it.isNotEmpty() } if (mismatches.isNotEmpty()) { val formattedMismatches = mismatches.mapValues { mismatch ->
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 04 14:00:46 UTC 2024 - 2.5K bytes - Viewed (0)