Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestDerivedGaugeWithLabels (0.21 sec)

  1. pkg/monitoring/monitoring_test.go

    		"Testing derived gauge functionality",
    	)
    )
    
    func TestDerivedGauge(t *testing.T) {
    	mt := monitortest.New(t)
    	mt.Assert(testDerivedGauge.Name(), nil, monitortest.Exactly(17.76))
    }
    
    func TestDerivedGaugeWithLabels(t *testing.T) {
    	foo := monitoring.CreateLabel("foo")
    	testDerivedGaugeLabels.ValueFrom(
    		func() float64 {
    			return 17.76
    		},
    		foo.Value("bar"),
    	)
    
    	testDerivedGaugeLabels.ValueFrom(
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Sep 13 16:04:48 UTC 2023
    - 8.4K bytes
    - Viewed (0)
Back to top