You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: repo_test.go
    path of file: ./repos/incubator-devlake/backend/plugins/gitextractor/parser
    
    the code of the file until where you have to start completion: /*
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements.  See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you ma
    
func TestGitRepo_CollectDiffLine(t *testing.T) {
	if !enableRepoTest {
		return
	}
	repoPath := simpleRepo
	gitRepo, err := gitRepoCreator.LocalRepo(repoPath, repoId)
	if err != nil {
		panic(err)
	}
	goGitRepo, err := goGitRepoCreator.LocalGoGitRepo(repoPath, repoId)
	if err != nil {
		panic(err)
	}

	{
		subTaskCtxCollectDiffLine := &testSubTaskContext{}
		if err1 := gitRepo.CollectDiffLine(subTaskCtxCollectDiffLine); err1 != nil {
			panic(err1)
		}
		//t.Logf("[CollectDiffLine] libgit2 result: %+v", subTaskCtxCollectDiffLine)

		subTaskCtxCollectDiffLineWithGoGit := &testSubTaskContext{}
		if err2 := goGitRepo.CollectDiffLine(subTaskCtxCollectDiffLineWithGoGit); err2 != nil {
			panic(err2)
		}

		t.Logf("[CollectCommits] libgit2 result: %+v, gogit result: %+v", subTaskCtxCollectDiffLine, subTaskCtxCollectDiffLineWithGoGit)
		fmt.Println(subTaskCtxCollectDiffLine.total, subTaskCtxCollectDiffLineWithGoGit.total)
		assert.Equalf(t, subTaskCtxCollectDiffLine.total, subTaskCtxCollectDiffLineWithGoGit.total, "unexpected")
	}
}