Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 57 for test_value (0.27 sec)

  1. src/os/env_test.go

    			}
    		}
    	}(Environ())
    
    	if err := Setenv(testKey, testValue); err != nil {
    		t.Fatalf("Setenv(%q, %q) failed: %v", testKey, testValue, err)
    	}
    	if _, ok := LookupEnv(testKey); !ok {
    		t.Errorf("Setenv(%q, %q) didn't set $%s", testKey, testValue, testKey)
    	}
    	Clearenv()
    	if val, ok := LookupEnv(testKey); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 04 15:31:54 UTC 2023
    - 5K bytes
    - Viewed (0)
  2. 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)
  3. tensorflow/compiler/mlir/tensorflow/tests/decompose_reduce_dataset.mlir

        // CHECK-NEXT:     %[[IF:.*]]:2 = "tf.IfRegion"(%[[HAS_VALUE]])
        // CHECK-NEXT:       %[[GET_VALUE:[0-9]*]]:2 = "tf.OptionalGetValue"(%[[GET_NEXT]])
        // CHECK-NEXT:       %[[FUNC_CALL:[0-9]*]]:2 = func.call @__reduce_func_3(%[[ARG_11]], %[[ARG_12]], %[[GET_VALUE]]#0, %[[GET_VALUE]]#1, %[[ARG_13]], %[[ARG_14]])
        // CHECK-SAME:       _xla_compile_device_type = "TPU"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 18 17:16:34 UTC 2022
    - 9.8K bytes
    - Viewed (0)
  4. 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)
  5. platforms/jvm/scala/src/test/groovy/org/gradle/api/tasks/scala/BaseScalaOptionTest.groovy

            } else {
                assert value(fixture.antProperty) == fixture.defaultValue
            }
            when:
            testObject."${fixture.fieldName}" = fixture.testValue
            then:
            value(fixture.antProperty) == fixture.testValue
            where:
            fixture << stringProperties()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 3K bytes
    - Viewed (0)
  6. 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)
  7. subprojects/core/src/integTest/groovy/org/gradle/internal/operations/notify/BuildOperationNotificationFixture.groovy

                for (String key : present) {
                    if (!testValue(expectedPayload[key], actualPayload[key])) {
                        return false
                    }
                }
                true
            } as Predicate
        }
    
        private static boolean testValue(expectedValue, actualValue) {
            if (expectedValue instanceof Closure) {
                expectedValue.call(actualValue)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 20 11:47:00 UTC 2022
    - 7.5K bytes
    - Viewed (0)
  8. pkg/registry/core/componentstatus/rest_test.go

    	r := NewTestREST(testResponse{result: probe.Success, data: "ok"})
    	opts := metainternalversion.ListOptions{
    		LabelSelector: labels.SelectorFromSet(map[string]string{
    			"testLabel": "testValue",
    		}),
    	}
    	got, err := r.List(genericapirequest.NewContext(), &opts)
    	if err != nil {
    		t.Fatalf("Unexpected error: %v", err)
    	}
    	expect := &api.ComponentStatusList{
    		Items: []api.ComponentStatus{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 13 08:10:29 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  9. clause/values_test.go

    package clause_test
    
    import (
    	"fmt"
    	"testing"
    
    	"gorm.io/gorm/clause"
    )
    
    func TestValues(t *testing.T) {
    	results := []struct {
    		Clauses []clause.Interface
    		Result  string
    		Vars    []interface{}
    	}{
    		{
    			[]clause.Interface{
    				clause.Insert{},
    				clause.Values{
    					Columns: []clause.Column{{Name: "name"}, {Name: "age"}},
    					Values:  [][]interface{}{{"jinzhu", 18}, {"josh", 1}},
    				},
    			},
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Thu Jan 06 07:02:53 UTC 2022
    - 691 bytes
    - Viewed (0)
  10. tests/test_serialize_response.py

    def get_validlist():
        return [
            {"name": "foo"},
            {"name": "bar", "price": 1.0},
            {"name": "baz", "price": 2.0, "owner_ids": [1, 2, 3]},
        ]
    
    
    client = TestClient(app)
    
    
    def test_valid():
        response = client.get("/items/valid")
        response.raise_for_status()
        assert response.json() == {"name": "valid", "price": 1.0, "owner_ids": None}
    
    
    def test_coerce():
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon Aug 03 12:29:07 UTC 2020
    - 1.4K bytes
    - Viewed (0)
Back to top