Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'internal/gitaly/linguist/linguist_test.go')
-rw-r--r--internal/gitaly/linguist/linguist_test.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/internal/gitaly/linguist/linguist_test.go b/internal/gitaly/linguist/linguist_test.go
index 085306a6c..d3b984ffe 100644
--- a/internal/gitaly/linguist/linguist_test.go
+++ b/internal/gitaly/linguist/linguist_test.go
@@ -366,7 +366,7 @@ func TestInstance_Stats(t *testing.T) {
// We simply run the linguist once before so that it can already
// write the cache.
- _, err := New(ctx, testhelper.NewLogger(t), catfileCache, repo).Stats(ctx, commitID)
+ _, err := New(testhelper.NewLogger(t), catfileCache, repo).Stats(ctx, commitID)
require.NoError(t, err)
require.FileExists(t, filepath.Join(repoPath, languageStatsFilename))
@@ -397,7 +397,7 @@ func TestInstance_Stats(t *testing.T) {
))
repo := localrepo.NewTestRepo(t, cfg, repoProto)
- _, err := New(ctx, testhelper.NewLogger(t), catfileCache, repo).Stats(ctx, commitID)
+ _, err := New(testhelper.NewLogger(t), catfileCache, repo).Stats(ctx, commitID)
require.NoError(t, err)
require.FileExists(t, filepath.Join(repoPath, languageStatsFilename))
@@ -485,7 +485,7 @@ func TestInstance_Stats(t *testing.T) {
// Precreate the cache with the old commit. This ensures that
// linguist knows to update the cache.
- stats, err := New(ctx, testhelper.NewLogger(t), catfileCache, repo).Stats(ctx, oldCommitID)
+ stats, err := New(testhelper.NewLogger(t), catfileCache, repo).Stats(ctx, oldCommitID)
require.NoError(t, err)
require.FileExists(t, filepath.Join(repoPath, languageStatsFilename))
require.Equal(t, ByteCountPerLanguage{
@@ -524,7 +524,7 @@ func TestInstance_Stats(t *testing.T) {
repoProto, repoPath, objectID := tc.setup(t)
repo := localrepo.NewTestRepo(t, cfg, repoProto)
- linguist := New(ctx, testhelper.NewLogger(t), catfileCache, repo)
+ linguist := New(testhelper.NewLogger(t), catfileCache, repo)
stats, err := linguist.Stats(ctx, objectID)
if tc.expectedErr == "" {
require.NoError(t, err)
@@ -568,7 +568,7 @@ func TestInstance_Stats_failureGitattributes(t *testing.T) {
repo := localrepo.New(logger, locator, gitCmdFactory, catfileCache, repoProto)
- linguist := New(ctx, logger, catfileCache, repo)
+ linguist := New(logger, catfileCache, repo)
_, err := linguist.Stats(ctx, commitID)
expectedErr := `linguist object iterator: ls-tree skip: new file instance: checking attribute:`
@@ -609,7 +609,7 @@ func BenchmarkInstance_Stats(b *testing.B) {
})
repo := localrepo.NewTestRepo(b, cfg, repoProto)
- linguist := New(ctx, testhelper.NewLogger(b), catfileCache, repo)
+ linguist := New(testhelper.NewLogger(b), catfileCache, repo)
var scratchStat ByteCountPerLanguage
var incStats ByteCountPerLanguage