Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for testMetric (0.13 sec)

  1. src/internal/godebug/godebug_test.go

    		t.Setenv("GODEBUG", tt.godebug)
    		got := tt.setting.Value()
    		if got != tt.want {
    			t.Errorf("get(%q, %q) = %q; want %q", tt.godebug, tt.setting.Name(), got, tt.want)
    		}
    	}
    }
    
    func TestMetrics(t *testing.T) {
    	const name = "http2client" // must be a real name so runtime will accept it
    
    	var m [1]metrics.Sample
    	m[0].Name = "/godebug/non-default-behavior/" + name + ":events"
    	metrics.Read(m[:])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. istioctl/pkg/metrics/metrics_test.go

    	for i, c := range cases {
    		t.Run(fmt.Sprintf("case %d %s", i, strings.Join(c.Args, " ")), func(t *testing.T) {
    			testutil.VerifyOutput(t, metricCmd, c)
    		})
    	}
    }
    
    func TestMetrics(t *testing.T) {
    	cases := []testutil.TestCase{
    		{ // case 0
    			Args:           strings.Split("details", " "),
    			ExpectedRegexp: regexp.MustCompile("could not build metrics for workload"),
    			WantException:  true,
    		},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Oct 25 02:07:44 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/filters/metrics_test.go

    	"k8s.io/apiserver/pkg/authentication/user"
    	"k8s.io/apiserver/pkg/authorization/authorizer"
    	"k8s.io/component-base/metrics/legacyregistry"
    	"k8s.io/component-base/metrics/testutil"
    )
    
    func TestMetrics(t *testing.T) {
    	// Excluding authentication_duration_seconds since it is difficult to predict its values.
    	metrics := []string{
    		"authenticated_user_requests",
    		"authentication_attempts",
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 20 13:35:55 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/server/egressselector/egress_selector_test.go

    	err bool
    }
    
    func (f *fakeProxier) proxy(_ context.Context, _ string) (net.Conn, error) {
    	if f.err {
    		return nil, fmt.Errorf("fake error")
    	}
    	return nil, nil
    }
    
    func TestMetrics(t *testing.T) {
    	testcases := map[string]struct {
    		connectorErr bool
    		proxierErr   bool
    		metrics      []string
    		want         string
    	}{
    		"connect to proxy server start": {
    			connectorErr: true,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 26 22:41:29 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  5. pkg/volume/emptydir/empty_dir_test.go

    	if volPath != filepath.Join(basePath, "pods/poduid/volumes/kubernetes.io~empty-dir/vol1") {
    		t.Errorf("Got unexpected path: %s", volPath)
    	}
    }
    
    // TestMetrics tests that MetricProvider methods return sane values.
    func TestMetrics(t *testing.T) {
    	// Create an empty temp directory for the volume
    	tmpDir, err := utiltesting.MkTmpdir("empty_dir_test")
    	if err != nil {
    		t.Fatalf("Can't make a tmp dir: %v", err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/server/healthz/healthz_test.go

    		t.Run(tt.name, func(t *testing.T) {
    			if got := getExcludedChecks(tt.r); !reflect.DeepEqual(got, tt.want) {
    				t.Errorf("getExcludedChecks() = %v, want %v", got, tt.want)
    			}
    		})
    	}
    }
    
    func TestMetrics(t *testing.T) {
    	mux := http.NewServeMux()
    	InstallHandler(mux)
    	InstallLivezHandler(mux)
    	InstallReadyzHandler(mux)
    	metrics.Register()
    	metrics.Reset()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 15 20:43:16 UTC 2023
    - 11.4K bytes
    - Viewed (0)
Back to top