Documentation ¶
Overview ¶
Package buftesting provides helpers for testing.
Index ¶
- func DiffImagesJSON(one bufpb.Image, two bufpb.Image, name string) (string, error)
- func DiffImagesText(one bufpb.Image, two bufpb.Image, name string) (string, error)
- func GetGithubArchive(ctx context.Context, outputDirPath string, owner string, repository string, ...) error
- func GetProtocImage(ctx context.Context, roots []string, realFilePaths []string, ...) (bufpb.Image, error)
- func ImagesEqual(one bufpb.Image, two bufpb.Image) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiffImagesJSON ¶
DiffImagesJSON diffs the two Images using jsonpb.
func DiffImagesText ¶
DiffImagesText diffs the two Images using proto.MarshalText.
func GetGithubArchive ¶
func GetGithubArchive( ctx context.Context, outputDirPath string, owner string, repository string, ref string, ) error
GetGithubArchive gets the GitHub archive and untars it to the output directory path.
The root directory within the tarball is stripped. If the directory already exists, this is a no-op.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.