buf: github.com/bufbuild/buf/internal/buf/bufcore/bufcoretesting Index | Files

package bufcoretesting

import "github.com/bufbuild/buf/internal/buf/bufcore/bufcoretesting"

Index

Package Files

bufcoretesting.go

func AssertFileInfosEqual Uses

func AssertFileInfosEqual(t *testing.T, expected []bufcore.FileInfo, actual []bufcore.FileInfo)

AssertFileInfosEqual asserts the expected FileInfos equal the actual FileInfos.

func FileInfoToAbs Uses

func FileInfoToAbs(t *testing.T, fileInfo bufcore.FileInfo) bufcore.FileInfo

FileInfoToAbs converts the external path to absolute.

func FileInfosToAbs Uses

func FileInfosToAbs(t *testing.T, fileInfos []bufcore.FileInfo) []bufcore.FileInfo

FileInfosToAbs converts the external paths to absolute.

func NewFileInfo Uses

func NewFileInfo(
    t *testing.T,
    path string,
    externalPath string,
    isImport bool,
) bufcore.FileInfo

NewFileInfo returns a new FileInfo for testing.

Package bufcoretesting imports 5 packages (graph). Updated 2020-10-20. Refresh now. Tools for package owners.