Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 117 for genMetrics (0.25 sec)

  1. pkg/collateral/control.go

    	for _, n := range names {
    		if commands[n].Name() == help {
    			continue
    		}
    
    		g.genCommand(commands[n])
    		_ = g.genConfigFile(commands[n].Flags())
    	}
    
    	g.genVars(cmd, p.SelectEnv)
    	g.genMetrics(p.SelectMetric)
    
    	f, err := os.Create(path)
    	if err != nil {
    		return err
    	}
    	_, err = g.buffer.WriteTo(f)
    	_ = f.Close()
    
    	return err
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 10 03:51:36 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  2. pkg/volume/metrics_du_test.go

    	}
    	actual, err = metrics.GetMetrics()
    	if err != nil {
    		t.Errorf("Unexpected error when calling GetMetrics %v", err)
    	}
    	if e, a := previousInodes, actual.InodesUsed.Value(); e != a {
    		t.Errorf("Unexpected Used for directory with file.  Expected %v, got %d.", e, a)
    	}
    
    }
    
    // TestMetricsDuRequireInit tests that if MetricsDu is not initialized with a path, GetMetrics
    // returns an error
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/mod_sum_issue56222.txt

    go mod download -json example.com/generics
    stdout '"GoModSum":'
    go list -f '{{if eq .ImportPath "example.com/generics"}}{{.Module.GoVersion}}{{end}}' -deps -test example.com/m2/q
    stdout 1.18
    
    
    # At go 1.20 or earlier, 'go mod tidy' should preserve the historical go.sum
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 12 13:58:58 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  4. pkg/volume/metrics_cached.go

    	return &cachedMetrics{wrapped: provider}
    }
    
    // GetMetrics runs the wrapped metrics provider's GetMetrics method once and
    // caches the result. Will not cache result if there is an error.
    // See MetricsProvider.GetMetrics
    func (md *cachedMetrics) GetMetrics() (*Metrics, error) {
    	md.once.cache(func() error {
    		md.resultMetrics, md.resultError = md.wrapped.GetMetrics()
    		return md.resultError
    	})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 16 11:12:06 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/mod/example.com_depends_on_generics_v1.0.0.txt

    example.com/depends/on/generics v1.0.0
    written by hand
    
    -- .mod --
    module example.com/depends/on/generics
    
    go 1.18
    
    require example.com/generics v1.0.0
    -- .info --
    {"Version":"v1.0.0"}
    -- go.mod --
    module example.com/depends/on/generics
    
    go 1.18
    
    require example.com/generics v1.0.0
    -- main.go --
    package main
    
    import "example.com/generics"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 11 20:37:36 UTC 2022
    - 370 bytes
    - Viewed (0)
  6. pkg/volume/metrics_block_linux_test.go

    	metrics := NewMetricsBlock("")
    	actual, err := metrics.GetMetrics()
    	expected := &Metrics{}
    	if !volumetest.MetricsEqualIgnoreTimestamp(actual, expected) {
    		t.Errorf("Expected empty Metrics from uninitialized MetricsBlock, actual %v", *actual)
    	}
    	if err == nil {
    		t.Errorf("Expected error when calling GetMetrics on uninitialized MetricsBlock, actual nil")
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 18 09:43:07 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/mod/example.com_generics_v1.0.0.txt

    example.com/generics v1.0.0
    written by hand
    
    -- .mod --
    module example.com/generics
    
    go 1.18
    -- .info --
    {"Version":"v1.0.0"}
    -- go.mod --
    module example.com/generics
    
    go 1.18
    -- generics.go --
    package generics
    
    type Int interface {
    	~int
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 11 20:37:36 UTC 2022
    - 255 bytes
    - Viewed (0)
  8. .github/ISSUE_TEMPLATE/11-language-change.yml

        validations:
          required: true
    
      - type: textarea
        id: generics-proposal
        attributes:
          label: Is this about generics?
          description: If so, how does this relate to the accepted design and other generics proposals?
          placeholder: |
           Yes or No
    
           If yes, 
            1. how does this relate to the accepted design and other generics proposals?
    
        validations:
          required: true
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 22 20:49:24 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  9. pkg/volume/csi/csi_metrics_test.go

    				fakeCloser := fake.NewCloser(t)
    				nodeClient.SetNodeVolumeStatsResp(getRawVolumeInfo())
    				return nodeClient, fakeCloser, nil
    			},
    		}
    		metrics, err := metricsGetter.GetMetrics()
    		if err != nil {
    			t.Fatalf("for %s: unexpected error : %v", tc.name, err)
    		}
    		if metrics == nil {
    			t.Fatalf("unexpected nil metrics")
    		}
    		expectedMetrics := getRawVolumeInfo()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 06:07:40 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/install_dep_version.txt

    # because the checksumOk function was failing because modfetch.GoSumFile
    # was not set when running outside of a module.
    
    env GOTOOLCHAIN=local
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 16:36:17 UTC 2023
    - 364 bytes
    - Viewed (0)
Back to top