Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 45 for testValue (0.77 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/types_test.go

    	}
    	expT, err := mp.ExprType()
    	if err != nil {
    		t.Errorf("fail to get cel type: %s", err)
    	}
    	if expT.GetMapType() == nil {
    		t.Errorf("got %v, wanted CEL map type", expT)
    	}
    }
    
    func testValue(t *testing.T, id int64, val interface{}) *DynValue {
    	t.Helper()
    	dv, err := NewDynValue(id, val)
    	if err != nil {
    		t.Fatalf("NewDynValue(%d, %v) failed: %v", id, val, err)
    	}
    	return dv
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go

    	testValues := []string{"100m", "1Gi"}
    	zero := MustParse("0")
    	for _, testValue := range testValues {
    		value := MustParse(testValue)
    		v1 := value.DeepCopy()
    		// ensure non-zero - zero = non-zero (suffix preserved)
    		v1.Sub(zero)
    		// ensure we preserved the input value
    		if v1.String() != testValue {
    			t.Errorf("Expected %v, actual %v", testValue, v1.String())
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  3. maven-toolchain-builder/src/test/java/org/apache/maven/toolchain/building/DefaultToolchainsBuilderTest.java

        @BeforeEach
        void onSetup() {
            // MockitoAnnotations.openMocks(this);
    
            Map<String, String> envVarMap = new HashMap<>();
            envVarMap.put("testKey", "testValue");
            envVarMap.put("testSpecialCharactersKey", "<test&Value>");
            OperatingSystemUtils.setEnvVarSource(new TestEnvVarSource(envVarMap));
    
            toolchainBuilder = new DefaultToolchainsBuilder(
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Mar 25 10:50:01 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  4. platforms/ide/ide-plugins/src/integTest/groovy/org/gradle/plugins/ide/eclipse/EclipseProjectIntegrationTest.groovy

            assert '1.1' != it.targetCompatibility.toString()
            it.targetCompatibility = JavaVersion.toVersion('1.1')
          }
          withProperties {
            hooks << 'withProperties'
            it.dummy = 'testValue'
          }
        }
      }
    }
    
    eclipseJdt.doLast() {
      assert hooks == ['beforeMerged', 'whenMerged', 'withProperties']
    }
            """
            when:
            run "eclipse"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Aug 01 11:07:39 UTC 2023
    - 18K bytes
    - Viewed (0)
  5. staging/src/k8s.io/cli-runtime/pkg/printers/json_test.go

    	"k8s.io/apimachinery/pkg/util/json"
    	"k8s.io/client-go/kubernetes/scheme"
    )
    
    var testData = TestStruct{
    	TypeMeta:   metav1.TypeMeta{APIVersion: "foo/bar", Kind: "TestStruct"},
    	Key:        "testValue",
    	Map:        map[string]int{"TestSubkey": 1},
    	StringList: []string{"a", "b", "c"},
    	IntList:    []int{1, 2, 3},
    }
    
    type TestStruct struct {
    	metav1.TypeMeta   `json:",inline"`
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 4K bytes
    - Viewed (0)
  6. src/sync/atomic/value_test.go

    // license that can be found in the LICENSE file.
    
    package atomic_test
    
    import (
    	"math/rand"
    	"runtime"
    	"strconv"
    	"sync"
    	"sync/atomic"
    	. "sync/atomic"
    	"testing"
    )
    
    func TestValue(t *testing.T) {
    	var v Value
    	if v.Load() != nil {
    		t.Fatal("initial Value is not nil")
    	}
    	v.Store(42)
    	x := v.Load()
    	if xx, ok := x.(int); !ok || xx != 42 {
    		t.Fatalf("wrong value: got %+v, want 42", x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 6.1K bytes
    - Viewed (0)
  7. test/typeparam/issue54225.go

    package main
    
    func main() {
    	One[TextValue]()
    }
    
    func One[V Value]() { Two[Node[V]]() }
    
    func Two[V interface{ contentLen() int }]() {
    	var v V
    	v.contentLen()
    }
    
    type Value interface {
    	Len() int
    }
    
    type Node[V Value] struct{}
    
    func (Node[V]) contentLen() int {
    	var value V
    	return value.Len()
    }
    
    type TextValue struct{}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 19 19:37:22 UTC 2022
    - 532 bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/runtime/helper.go

    		return fmt.Errorf("couldn't find %v field in %T", fieldName, v.Interface())
    	}
    	destValue, err := conversion.EnforcePtr(dest)
    	if err != nil {
    		return err
    	}
    	if field.Type().AssignableTo(destValue.Type()) {
    		destValue.Set(field)
    		return nil
    	}
    	if field.Type().ConvertibleTo(destValue.Type()) {
    		destValue.Set(field.Convert(destValue.Type()))
    		return nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 13 22:54:34 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  9. test/fixedbugs/issue9604b.go

    	for _, t := range types {
    		for _, n := range t.testvalues() {
    			fmt.Printf("var %s_%s %s = %d\n", t.name, valname(n), t.name, n)
    		}
    	}
    
    	fmt.Println("func main() {")
    
    	for _, t := range types {
    		// test binary ops
    		for _, op := range binops {
    			for _, x := range t.testvalues() {
    				for _, y := range t.testvalues() {
    					if (op.name == "/" || op.name == "%") && y.Sign() == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  10. statement.go

    			destValue := reflect.ValueOf(stmt.Dest)
    			for destValue.Kind() == reflect.Ptr {
    				destValue = destValue.Elem()
    			}
    
    			if stmt.ReflectValue != destValue {
    				if !destValue.CanAddr() {
    					destValueCanAddr := reflect.New(destValue.Type())
    					destValueCanAddr.Elem().Set(destValue)
    					stmt.Dest = destValueCanAddr.Interface()
    					destValue = destValueCanAddr.Elem()
    				}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Jan 12 08:42:21 UTC 2024
    - 19.8K bytes
    - Viewed (0)
Back to top