Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for TestBind (1.43 sec)

  1. pkg/flag/flag_test.go

    // limitations under the License.
    
    package flag
    
    import (
    	"testing"
    
    	"github.com/spf13/pflag"
    
    	"istio.io/istio/pkg/test"
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestBind(t *testing.T) {
    	type Options struct {
    		A, B, C string
    		Env     string
    		Bool    bool
    	}
    	opts := Options{
    		B: "b-def",
    	}
    	test.SetEnvForTest(t, "TEST_ENV", "from-env")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Nov 01 04:37:36 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. subprojects/build-events/src/main/java/org/gradle/internal/build/event/types/DefaultTestDescriptor.java

            this.operationDisplayName = operationDisplayName;
            this.testDisplayName = displayName;
            this.testKind = testKind;
            this.suiteName = suiteName;
            this.className = className;
            this.methodName = methodName;
            this.parentId = parentId;
            this.taskPath = taskPath;
        }
    
        @Override
        public OperationIdentifier getId() {
            return id;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 08 07:45:14 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. pkg/log/scope_test.go

    	if z1 != z2 {
    		t.Error("Expecting the same scope objects, got different ones")
    	}
    }
    
    func TestFind(t *testing.T) {
    	if z := FindScope("TestFind"); z != nil {
    		t.Error("Found scope, but expected it wouldn't exist")
    	}
    
    	_ = RegisterScope("TestFind", "")
    
    	if z := FindScope("TestFind"); z == nil {
    		t.Error("Did not find scope, expected to find it")
    	}
    }
    
    func TestBadNames(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 03 17:36:09 UTC 2024
    - 11K bytes
    - Viewed (0)
  4. pilot/pkg/config/kube/crd/config_test.go

    package crd_test
    
    import (
    	"encoding/json"
    	"reflect"
    	"testing"
    
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    
    	"istio.io/istio/pilot/pkg/config/kube/crd"
    	"istio.io/istio/pkg/ptr"
    )
    
    func TestKind(t *testing.T) {
    	obj := crd.IstioKind{}
    
    	spec := json.RawMessage(`{"a":"b"}`)
    	obj.Spec = spec
    	if got := obj.GetSpec(); !reflect.DeepEqual(spec, got) {
    		t.Errorf("GetSpec() => got %v, want %v", got, spec)
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 18:26:16 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  5. src/sort/search_test.go

    }
    
    func TestSearch(t *testing.T) {
    	for _, e := range tests {
    		i := Search(e.n, e.f)
    		if i != e.i {
    			t.Errorf("%s: expected index %d; got %d", e.name, e.i, i)
    		}
    	}
    }
    
    func TestFind(t *testing.T) {
    	str1 := []string{"foo"}
    	str2 := []string{"ab", "ca"}
    	str3 := []string{"mo", "qo", "vo"}
    	str4 := []string{"ab", "ad", "ca", "xy"}
    
    	// slice with repeating elements
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 07 14:42:13 UTC 2022
    - 6.8K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/parameters/BuildProgressListenerAdapter.java

            }
        }
    
        private static JvmTestKind toJvmTestKind(String testKind) {
            if (InternalJvmTestDescriptor.KIND_SUITE.equals(testKind)) {
                return JvmTestKind.SUITE;
            } else if (InternalJvmTestDescriptor.KIND_ATOMIC.equals(testKind)) {
                return JvmTestKind.ATOMIC;
            } else {
                return JvmTestKind.UNKNOWN;
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 67.5K bytes
    - Viewed (0)
  7. src/regexp/find_test.go

    		ret[i] = make([]int, runLength)
    		copy(ret[i], x[j:])
    		j += runLength
    		if j > len(x) {
    			panic("invalid build entry")
    		}
    	}
    	return ret
    }
    
    // First the simple cases.
    
    func TestFind(t *testing.T) {
    	for _, test := range findTests {
    		re := MustCompile(test.pat)
    		if re.String() != test.pat {
    			t.Errorf("String() = `%s`; should be `%s`", re.String(), test.pat)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 11 15:28:50 UTC 2021
    - 16.3K bytes
    - Viewed (0)
  8. tests/query_test.go

    	"database/sql/driver"
    	"fmt"
    	"reflect"
    	"regexp"
    	"sort"
    	"strconv"
    	"strings"
    	"testing"
    	"time"
    
    	"gorm.io/gorm"
    	"gorm.io/gorm/clause"
    	. "gorm.io/gorm/utils/tests"
    )
    
    func TestFind(t *testing.T) {
    	users := []User{
    		*GetUser("find", Config{}),
    		*GetUser("find", Config{}),
    		*GetUser("find", Config{}),
    	}
    
    	if err := DB.Create(&users).Error; err != nil {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed May 08 04:07:58 UTC 2024
    - 49.8K bytes
    - Viewed (0)
Back to top