Sfoglia il codice sorgente

Rename test data files to be consistently lowercase. (#506)

Co-authored-by: Maggie Nolan <nolanmar@google.com>
Alexey Alexandrov 5 anni fa
parent
commit
2827a3cc57
No account linked to committer's email address

+ 5
- 5
internal/driver/driver_test.go Vedi File

@@ -97,8 +97,8 @@ func TestParse(t *testing.T) {
97 97
 		{"weblist=line[13],addresses,flat", "cpu"},
98 98
 		{"tags,tagfocus=400kb:", "heap_request"},
99 99
 		{"tags,tagfocus=+400kb:", "heap_request"},
100
-		{"dot", "longNameFuncs"},
101
-		{"text", "longNameFuncs"},
100
+		{"dot", "long_name_funcs"},
101
+		{"text", "long_name_funcs"},
102 102
 	}
103 103
 
104 104
 	baseVars := pprofVariables
@@ -445,7 +445,7 @@ func (testFetcher) Fetch(s string, d, t time.Duration) (*profile.Profile, string
445 445
 		p = contentionProfile()
446 446
 	case "symbolz":
447 447
 		p = symzProfile()
448
-	case "longNameFuncs":
448
+	case "long_name_funcs":
449 449
 		p = longNameFuncsProfile()
450 450
 	default:
451 451
 		return nil, "", fmt.Errorf("unexpected source: %s", s)
@@ -530,8 +530,8 @@ func fakeDemangler(name string) string {
530 530
 	}
531 531
 }
532 532
 
533
-// longNameFuncsProfile returns a profile with function names which should be shortened in
534
-// graph and flame views.
533
+// longNameFuncsProfile returns a profile with function names which should be
534
+// shortened in graph and flame views.
535 535
 func longNameFuncsProfile() *profile.Profile {
536 536
 	var longNameFuncsM = []*profile.Mapping{
537 537
 		{

internal/driver/testdata/pprof.longNameFuncs.dot → internal/driver/testdata/pprof.long_name_funcs.dot Vedi File


internal/driver/testdata/pprof.longNameFuncs.text → internal/driver/testdata/pprof.long_name_funcs.text Vedi File