Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestRegisterIfSum (0.17 sec)

  1. pkg/monitoring/monitoring_test.go

    	mt.Assert(goofySum.Name(), map[string]string{"kind": "goofy", "name": "baz"}, monitortest.Exactly(44))
    	mt.Assert(testSum.Name(), map[string]string{"kind": "bar"}, monitortest.Exactly(1))
    }
    
    func TestRegisterIfSum(t *testing.T) {
    	mt := monitortest.New(t)
    
    	testDisabledSum.With(name.Value("foo"), kind.Value("bar")).Increment()
    	mt.Assert(testDisabledSum.Name(), nil, monitortest.DoesNotExist)
    
    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