diff options
author | Toon Claes <toon@gitlab.com> | 2022-08-05 13:06:25 +0300 |
---|---|---|
committer | Toon Claes <toon@gitlab.com> | 2022-08-08 17:50:12 +0300 |
commit | 0ddd3e9b2d0253f25a70c2509470e172b74fd0e9 (patch) | |
tree | ac0b3d6012dce31309ad6927eb9aaa8b1741bded | |
parent | b6efb355a4a8806513c8ff89fdb4a4b8ab4c766a (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, }, }, |