Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename test data files to be consistently lowercase. #506

Merged
merged 2 commits into from
Feb 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions internal/driver/driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ func TestParse(t *testing.T) {
{"weblist=line[13],addresses,flat", "cpu"},
{"tags,tagfocus=400kb:", "heap_request"},
{"tags,tagfocus=+400kb:", "heap_request"},
{"dot", "longNameFuncs"},
{"text", "longNameFuncs"},
{"dot", "long_name_funcs"},
{"text", "long_name_funcs"},
}

baseVars := pprofVariables
Expand Down Expand Up @@ -445,7 +445,7 @@ func (testFetcher) Fetch(s string, d, t time.Duration) (*profile.Profile, string
p = contentionProfile()
case "symbolz":
p = symzProfile()
case "longNameFuncs":
case "long_name_funcs":
p = longNameFuncsProfile()
default:
return nil, "", fmt.Errorf("unexpected source: %s", s)
Expand Down Expand Up @@ -530,8 +530,8 @@ func fakeDemangler(name string) string {
}
}

// longNameFuncsProfile returns a profile with function names which should be shortened in
// graph and flame views.
// longNameFuncsProfile returns a profile with function names which should be
// shortened in graph and flame views.
func longNameFuncsProfile() *profile.Profile {
var longNameFuncsM = []*profile.Mapping{
{
Expand Down