Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,756 for testLang (0.16 sec)

  1. src/cmd/internal/test2json/testdata/vet.json

    {"Action":"pass","Test":"TestTags/x_testtag_y"}
    {"Action":"output","Test":"TestTags/x,testtag,y","Output":"    --- PASS: TestTags/x,testtag,y (0.04s)\n"}
    {"Action":"output","Test":"TestTags/x,testtag,y","Output":"        vet_test.go:187: -tags=x,testtag,y\n"}
    {"Action":"pass","Test":"TestTags/x,testtag,y"}
    {"Action":"output","Test":"TestTags/testtag","Output":"    --- PASS: TestTags/testtag (0.04s)\n"}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 17:33:07 UTC 2022
    - 11.8K bytes
    - Viewed (0)
  2. src/runtime/chan_test.go

    type struct0 struct{}
    
    func BenchmarkMakeChan(b *testing.B) {
    	b.Run("Byte", func(b *testing.B) {
    		var x chan byte
    		for i := 0; i < b.N; i++ {
    			x = make(chan byte, 8)
    		}
    		close(x)
    	})
    	b.Run("Int", func(b *testing.B) {
    		var x chan int
    		for i := 0; i < b.N; i++ {
    			x = make(chan int, 8)
    		}
    		close(x)
    	})
    	b.Run("Ptr", func(b *testing.B) {
    		var x chan *byte
    		for i := 0; i < b.N; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:47:35 UTC 2023
    - 23.4K bytes
    - Viewed (0)
  3. src/hash/maphash/smhasher_test.go

    			b[1] = byte(j)
    			h.addB(b[:2])
    			if !testing.Short() {
    				for k := 0; k < 256; k++ {
    					b[2] = byte(k)
    					h.addB(b[:3])
    				}
    			}
    		}
    	}
    	h.check(t)
    }
    
    // Different length strings of all zeros have distinct hashes.
    func TestSmhasherZeros(t *testing.T) {
    	t.Parallel()
    	N := 256 * 1024
    	if testing.Short() {
    		N = 1024
    	}
    	h := newHashSet()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:41:38 UTC 2024
    - 11K bytes
    - Viewed (0)
  4. src/expvar/expvar_test.go

    	}
    }
    
    func BenchmarkIntAdd(b *testing.B) {
    	var v Int
    
    	b.RunParallel(func(pb *testing.PB) {
    		for pb.Next() {
    			v.Add(1)
    		}
    	})
    }
    
    func BenchmarkIntSet(b *testing.B) {
    	var v Int
    
    	b.RunParallel(func(pb *testing.PB) {
    		for pb.Next() {
    			v.Set(1)
    		}
    	})
    }
    
    func TestFloat(t *testing.T) {
    	RemoveAll()
    	reqs := NewFloat("requests-float")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:46:19 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/validation/validation_test.go

    limitations under the License.
    */
    
    package validation
    
    import (
    	"fmt"
    	"strings"
    	"testing"
    
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/types"
    	"k8s.io/apimachinery/pkg/util/validation/field"
    )
    
    func TestValidateLabels(t *testing.T) {
    	successCases := []map[string]string{
    		{"simple": "bar"},
    		{"now-with-dashes": "bar"},
    		{"1-starts-with-num": "bar"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 02 07:48:42 UTC 2023
    - 15.2K bytes
    - Viewed (0)
  6. src/runtime/callers_test.go

    	return 1 + callersInlined1(b, n-1)
    }
    func callersInlined1(b *testing.B, n int) int { return callersInlined2(b, n) }
    func callersInlined2(b *testing.B, n int) int { return callersInlined3(b, n) }
    func callersInlined3(b *testing.B, n int) int { return callersInlined4(b, n) }
    func callersInlined4(b *testing.B, n int) int { return callersInlined(b, n) }
    
    func callersNoCache(b *testing.B, n int) int {
    	if n <= 0 {
    		pcs := make([]uintptr, 32)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 21:36:31 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  7. src/internal/coverage/cfile/emitdata_test.go

    	// Sub-tests for each API we want to inspect, plus
    	// extras for error testing.
    	t.Run("emitToDir", func(t *testing.T) {
    		t.Parallel()
    		testEmitToDir(t, atomicHarnessPath, dir)
    	})
    	t.Run("emitToWriter", func(t *testing.T) {
    		t.Parallel()
    		testEmitToWriter(t, atomicHarnessPath, dir)
    	})
    	t.Run("emitToNonexistentDir", func(t *testing.T) {
    		t.Parallel()
    		testEmitToNonexistentDir(t, atomicHarnessPath, dir)
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  8. pkg/config/validation/agent/extensionprovider_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package agent
    
    import (
    	"testing"
    
    	meshconfig "istio.io/api/mesh/v1alpha1"
    )
    
    func TestValidateExtensionProviderService(t *testing.T) {
    	tests := []struct {
    		service string
    		valid   bool
    		name    string
    	}{
    		{
    			service: "127.0.0.1",
    			valid:   true,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. pkg/kubelet/cm/cpumanager/state/state_checkpoint_test.go

    import (
    	"os"
    	"reflect"
    	"strings"
    	"testing"
    
    	"github.com/stretchr/testify/require"
    	"k8s.io/kubernetes/pkg/kubelet/checkpointmanager"
    	"k8s.io/kubernetes/pkg/kubelet/cm/containermap"
    	testutil "k8s.io/kubernetes/pkg/kubelet/cm/cpumanager/state/testing"
    	"k8s.io/utils/cpuset"
    )
    
    const testingCheckpoint = "cpumanager_checkpoint_test"
    
    func TestCheckpointStateRestore(t *testing.T) {
    	testCases := []struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 03 16:26:09 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/storage/etcd3/watcher_test.go

    	storagetesting "k8s.io/apiserver/pkg/storage/testing"
    	utilfeature "k8s.io/apiserver/pkg/util/feature"
    	featuregatetesting "k8s.io/component-base/featuregate/testing"
    	"k8s.io/utils/ptr"
    )
    
    func TestWatch(t *testing.T) {
    	ctx, store, _ := testSetup(t)
    	storagetesting.RunTestWatch(ctx, t, store)
    }
    
    func TestClusterScopedWatch(t *testing.T) {
    	ctx, store, _ := testSetup(t)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 12.3K bytes
    - Viewed (1)
Back to top