Browse Source

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

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

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

97
 		{"weblist=line[13],addresses,flat", "cpu"},
97
 		{"weblist=line[13],addresses,flat", "cpu"},
98
 		{"tags,tagfocus=400kb:", "heap_request"},
98
 		{"tags,tagfocus=400kb:", "heap_request"},
99
 		{"tags,tagfocus=+400kb:", "heap_request"},
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
 	baseVars := pprofVariables
104
 	baseVars := pprofVariables
445
 		p = contentionProfile()
445
 		p = contentionProfile()
446
 	case "symbolz":
446
 	case "symbolz":
447
 		p = symzProfile()
447
 		p = symzProfile()
448
-	case "longNameFuncs":
448
+	case "long_name_funcs":
449
 		p = longNameFuncsProfile()
449
 		p = longNameFuncsProfile()
450
 	default:
450
 	default:
451
 		return nil, "", fmt.Errorf("unexpected source: %s", s)
451
 		return nil, "", fmt.Errorf("unexpected source: %s", s)
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
 func longNameFuncsProfile() *profile.Profile {
535
 func longNameFuncsProfile() *profile.Profile {
536
 	var longNameFuncsM = []*profile.Mapping{
536
 	var longNameFuncsM = []*profile.Mapping{
537
 		{
537
 		{

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


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