Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TextToMetricFamilies (0.14 sec)

  1. pilot/cmd/pilot-agent/status/server_test.go

    			}
    			if !strings.Contains(rec.Body.String(), tt.output) {
    				t.Fatalf("handleStats() => %v; want %v", rec.Body.String(), tt.output)
    			}
    
    			parser := expfmt.TextParser{}
    			mfMap, err := parser.TextToMetricFamilies(strings.NewReader(rec.Body.String()))
    			if err != nil && !tt.expectParseError {
    				t.Fatalf("failed to parse metrics: %v", err)
    			} else if err == nil && tt.expectParseError {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 42.6K bytes
    - Viewed (0)
Back to top