blameutils

package
v0.0.0-...-dca94c8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const CommitHash1 = "47accf06f13b503f3bab06fed7860e72f7523cac"
View Source
const CommitHash2 = "b2dc884b7439882c4dbe1e660cb1e02a3f84e45d"
View Source
const FilePath = "README.md"
View Source
const Org = "bridgecrewio"
View Source
const Repository = "terragoat"

Variables

This section is empty.

Functions

func CreateMockBlame

func CreateMockBlame(textBytes []byte) git.BlameResult

func ExtractDate

func ExtractDate(dateStr string) (time.Time, error)

func GetGitLines

func GetGitLines(t *testing.T, numOfLines int) []*git.Line

func SetupBlame

func SetupBlame(t *testing.T) gitservice.GitBlame

func SetupBlameResults

func SetupBlameResults(t *testing.T, path string, numOfLines int) *git.BlameResult

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL