From 437016954ae0f33313f163338de25ed1586054b5 Mon Sep 17 00:00:00 2001 From: Alexey Alexandrov Date: Sat, 8 Feb 2020 20:05:05 -0800 Subject: [PATCH] Rename test data files to be consistently lowercase. --- internal/driver/driver_test.go | 10 +++++----- ...rof.longNameFuncs.dot => pprof.long_name_funcs.dot} | 0 ...f.longNameFuncs.text => pprof.long_name_funcs.text} | 0 3 files changed, 5 insertions(+), 5 deletions(-) rename internal/driver/testdata/{pprof.longNameFuncs.dot => pprof.long_name_funcs.dot} (100%) rename internal/driver/testdata/{pprof.longNameFuncs.text => pprof.long_name_funcs.text} (100%) diff --git a/internal/driver/driver_test.go b/internal/driver/driver_test.go index 8eeeb48b..c1afff10 100644 --- a/internal/driver/driver_test.go +++ b/internal/driver/driver_test.go @@ -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 @@ -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) @@ -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{ { diff --git a/internal/driver/testdata/pprof.longNameFuncs.dot b/internal/driver/testdata/pprof.long_name_funcs.dot similarity index 100% rename from internal/driver/testdata/pprof.longNameFuncs.dot rename to internal/driver/testdata/pprof.long_name_funcs.dot diff --git a/internal/driver/testdata/pprof.longNameFuncs.text b/internal/driver/testdata/pprof.long_name_funcs.text similarity index 100% rename from internal/driver/testdata/pprof.longNameFuncs.text rename to internal/driver/testdata/pprof.long_name_funcs.text