fixtures

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Strings = []string{
	"1ZQheycERGjpTeXgJrzpjmxDxaixVJVcstgKyiwUshRx7AwZAsHtRwGVFgDtQlyVRiMMw618Hr4kbty66v1NN7acAnApEBAz9BfwfQ5kz87aGcaPSeck3F8obdyRPHmA",
	"xQr3HS4TmD87DPLMU17gUicZ",
	"lWBsiwTmlpA0H5k2nZjz64UM",
	"test",
	"{\"message\": \"weird, but could happen\"}",
	"\n % cat /dev/urandom | strings -n 16\n3 ,V\";u=)gg	H(>{d\nhV9+pprKG	>|=)IyO\nPvico@rXJ{L/g&g\n b83x)))n5GU+oI*a)\n!__dL`;5IX]/)ro1Pa4\nh;{a3U8\\fRYI}07Ivr]\nCy%JJY]kBMl!)tm	\nWo:Y	@1|5<FPFF	t }\n",
	"🤔🤔🤔",
	"  yikes, leading and trailing spaces!!  ",
}

Functions

func DiffBytes

func DiffBytes(a, b []byte) []diffmatchpatch.Diff

func SuffixesConfig

func SuffixesConfig(file string) (map[string]string, error)

func TestDataDir

func TestDataDir() (string, error)

Types

type File

type File struct {
	Name   string
	SrcDir string
	Repo   *Repo
}

func Files

func Files(repo *Repo) ([]File, error)

func (File) Checkout

func (f File) Checkout(kind string) error

func (File) Compare

func (f File) Compare(kind string) (bool, error)

func (File) DiffDecrypted

func (f File) DiffDecrypted() ([]diffmatchpatch.Diff, error)

func (File) SrcPath

func (f File) SrcPath(kind string) string

func (File) TmpPath

func (f File) TmpPath(kind string) string

type Repo

type Repo struct {
	ConfigFile string
	Provider   string
	Note       string
	Files      []File
	TmpDir     string
	Suffixes   map[string]string
	OldCwd     string
}

func Repos

func Repos() ([]Repo, error)

func (Repo) Checkout

func (r Repo) Checkout(kind string) error

func (Repo) Compare

func (r Repo) Compare(kind string) (bool, error)

func (Repo) Destroy

func (r Repo) Destroy() error

func (*Repo) Setup

func (r *Repo) Setup() error

func (*Repo) Skip

func (r *Repo) Skip() bool

func (Repo) String

func (r Repo) String() string

Jump to

Keyboard shortcuts

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