Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for t2Value (0.2 sec)

  1. maven-xml-impl/src/test/java/org/apache/maven/internal/xml/XmlNodeImplTest.java

            // create the recessive DOM
            Xpp3Dom t2 = new Xpp3Dom("top");
            t2.setAttribute("attr2", "value2");
            t2.setValue("t2Value");
            t2.setInputLocation("t2top");
    
            // merge and check results.
            Xpp3Dom result = Xpp3Dom.mergeXpp3Dom(t1, t2);
    
            assertEquals(2, result.getAttributeNames().length);
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Mar 25 10:50:01 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/interpodaffinity/scoring.go

    	if term.Matches(pod, nsLabels) {
    		if tpValue, tpValueExist := node.Labels[term.TopologyKey]; tpValueExist {
    			if m[term.TopologyKey] == nil {
    				m[term.TopologyKey] = make(map[string]int64)
    			}
    			m[term.TopologyKey][tpValue] += int64(weight * multiplier)
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/ValueSupplier.java

            }
    
            @Nullable
            public SideEffect<? super T> getSideEffect() throws IllegalStateException {
                return null;
            }
    
            public Value<T> toValue() throws IllegalStateException {
                throw new IllegalStateException();
            }
    
            public abstract ProviderInternal<T> toProvider();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 20:31:29 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/WithSideEffectProviderTest.groovy

            when:
            def value = provider.calculateExecutionTimeValue()
            value.fixedValue == 23
    
            then:
            0 * _
    
            when:
            value.toValue().get()
    
            then:
            1 * sideEffect.execute(23)
            0 * _
        }
    
        def "carries the side effect in the execution time value for a provider of a changing value"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 26 06:53:07 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/RequestCommonTest.kt

          builder.addHeader("", "Value")
        }
      }
    
      @Test
      fun headerAllowsTabOnlyInValues() {
        val builder = Request.Builder()
        builder.header("key", "sample\tvalue")
        assertFailsWith<IllegalArgumentException> {
          builder.header("sample\tkey", "value")
        }
      }
    
      @Test
      fun headerForbidsControlCharacters() {
        assertForbiddenHeader("\u0000")
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/Collectors.java

            } else if (value.hasFixedValue()) {
                // transform preserving side effects
                visitor.execute(ValueSupplier.ExecutionTimeValue.value(value.toValue().transform(ImmutableList::of)));
            } else {
                visitor.execute(ValueSupplier.ExecutionTimeValue.changingValue(value.getChangingValue().map(transformer(ImmutableList::of))));
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 13:15:09 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/RequestTest.kt

          builder.addHeader("", "Value")
        }
      }
    
      @Test
      fun headerAllowsTabOnlyInValues() {
        val builder = Request.Builder()
        builder.header("key", "sample\tvalue")
        assertFailsWith<IllegalArgumentException> {
          builder.header("sample\tkey", "value")
        }
      }
    
      @Test
      fun headerForbidsControlCharacters() {
        assertForbiddenHeader("\u0000")
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/ProviderSpec.groovy

            def unpackedValue = value.get()
            then:
            unpackedValue == someValue()
            1 * sideEffect.execute(someValue())
            0 * _
    
            when:
            unpackedValue = executionTimeValue.toValue().get()
            then:
            unpackedValue == someValue()
            1 * sideEffect.execute(someValue())
            0 * _
    
            when:
            unpackedValue = getter(provider, method, someOtherValue())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 26 06:53:07 UTC 2023
    - 19.2K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/walk/complit.go

    			base.Fatalf("maplit: entry is not a literal: %v", r)
    		}
    	}
    
    	if len(entries) > 25 {
    		// For a large number of entries, put them in an array and loop.
    
    		// build types [count]Tindex and [count]Tvalue
    		tk := types.NewArray(n.Type().Key(), int64(len(entries)))
    		te := types.NewArray(n.Type().Elem(), int64(len(entries)))
    
    		// TODO(#47904): mark tk and te NoAlg here once the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:03:54 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  10. src/internal/reflectlite/all_test.go

    package reflectlite_test
    
    import (
    	"encoding/base64"
    	"fmt"
    	"internal/abi"
    	. "internal/reflectlite"
    	"math"
    	"reflect"
    	"runtime"
    	"testing"
    	"unsafe"
    )
    
    func ToValue(v Value) reflect.Value {
    	return reflect.ValueOf(ToInterface(v))
    }
    
    func TypeString(t Type) string {
    	return fmt.Sprintf("%T", ToInterface(Zero(t)))
    }
    
    type integer int
    type T struct {
    	a int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 19:26:08 UTC 2023
    - 24.2K bytes
    - Viewed (0)
Back to top