diff options
author | Toon Claes <toon@gitlab.com> | 2022-08-05 13:06:25 +0300 |
---|---|---|
committer | Toon Claes <toon@gitlab.com> | 2022-08-09 12:34:18 +0300 |
commit | b27f8435115f3258875b3c4e1c55cc20f6d1bd29 (patch) | |
tree | 02425646232062df75b6eb6f9346c0b12c493afb | |
parent | 8b1e96f1fb722a7ea099723717c35e205875f738 (diff) |
linguist: Use proper type in test
The ByteCountPerLanguage type is equal to map[string]uint64, so use the
type definition instead.
-rw-r--r-- | internal/gitaly/linguist/linguist_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/gitaly/linguist/linguist_test.go b/internal/gitaly/linguist/linguist_test.go index 85c393e7a..ef90e1726 100644 --- a/internal/gitaly/linguist/linguist_test.go +++ b/internal/gitaly/linguist/linguist_test.go @@ -115,7 +115,7 @@ func testInstanceStats(t *testing.T, ctx context.Context) { return repoProto, repoPath, commitID }, - expectedStats: map[string]uint64{ + expectedStats: ByteCountPerLanguage{ "CoffeeScript": 107, "HTML": 349, "JavaScript": 1014, @@ -145,7 +145,7 @@ func testInstanceStats(t *testing.T, ctx context.Context) { return repoProto, repoPath, commitID }, - expectedStats: map[string]uint64{ + expectedStats: ByteCountPerLanguage{ "CoffeeScript": 107, "HTML": 349, "JavaScript": 1014, @@ -167,7 +167,7 @@ func testInstanceStats(t *testing.T, ctx context.Context) { return repoProto, repoPath, commitID }, - expectedStats: map[string]uint64{ + expectedStats: ByteCountPerLanguage{ "CoffeeScript": 107, "HTML": 349, "JavaScript": 1014, @@ -198,7 +198,7 @@ func testInstanceStats(t *testing.T, ctx context.Context) { return repoProto, repoPath, newCommitID }, - expectedStats: map[string]uint64{ + expectedStats: ByteCountPerLanguage{ "Go": 12, }, }, |