commontest

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package commontest provides exported shared helper functions for testing.

Index

Constants

This section is empty.

Variables

View Source
var (
	TestAuthor = &object.Signature{
		Name:  "test_author",
		Email: "test_email",
		When:  time.Now(),
	}
)

Functions

func InitNewRepoWithCommit

func InitNewRepoWithCommit(repoRoot string) (*git.Repository, plumbing.Hash, error)

func WriteTempFiles

func WriteTempFiles(modFiles map[string][]byte) error

WriteTempFiles is a helper function to dynamically write files such as go.mod or version.go used for testing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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