func NewFileInfo(
	t *testing.T,
	path string,
	externalPath string,
	isImport bool,
	moduleIdentity bufmoduleref.ModuleIdentity,
	commit string,
) bufmoduleref.FileInfo {
	fileInfo, err := bufmoduleref.NewFileInfo(
		path,
		externalPath,
		isImport,
		moduleIdentity,
		commit,
	)
	require.NoError(t, err)
	return fileInfo
}
// NewFileInfo returns a new FileInfo for testing.
NewFileInfo returns a new FileInfo for testing.
// NewFileInfo returns a new FileInfo for testing .
func NewFileInfo(
	t *testing.T,
	path string,
	externalPath string,
	isImport bool,
	moduleIdentity bufmoduleref.ModuleIdentity,
	commit string,
) bufmoduleref.FileInfo {
	fileInfo, err := bufmoduleref.NewFileInfo(
		path,
		externalPath,
		isImport,
		moduleIdentity,
		commit,
	)
	require.NoError(t, err)
	return fileInfo
}
func NewFileInfo ( t * testing . T , path string , externalPath string , isImport bool , moduleIdentity bufmoduleref . ModuleIdentity , commit string , ) bufmoduleref . FileInfo { fileInfo , err := bufmoduleref . NewFileInfo ( path , externalPath , isImport , moduleIdentity , commit , ) require . NoError ( t , err ) return fileInfo }
NewFileInfo returns a new FileInfo for testing.
NewFileInfo returns a new FileInfo for testing .