logic

package
v0.0.0-...-b4e4424 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmprdStructures

type CmprdStructures struct {
	// contains filtered or unexported fields
}

func (CmprdStructures) FilesWithoutTests

func (cmprdStructures CmprdStructures) FilesWithoutTests() []string

func (CmprdStructures) TestsWithoutSrcFiles

func (cmprdStructures CmprdStructures) TestsWithoutSrcFiles() []string

type ComparedStructures

type ComparedStructures interface {
	FilesWithoutTests() []string
	TestsWithoutSrcFiles() []string
}

func CmprdStructuresCtor

func CmprdStructuresCtor(srcDir, testsDir Directory) ComparedStructures

type Config

type Config struct {
	TestFreeFiles []string `yaml:"test-free-files"` //nolint:tagliatelle
	TestHelpers   []string `yaml:"test-helpers"`    //nolint:tagliatelle
}

type Directory

type Directory interface {
	Structure() ([]Path, error)
}

func ExcludedTestsDirectoryCtor

func ExcludedTestsDirectoryCtor(srcDir, testsPath Directory) Directory

func FilteredByConfigFilesCtor

func FilteredByConfigFilesCtor(origin Directory, patterns []string) Directory

func FkDirectoryCtor

func FkDirectoryCtor(origin []Path) Directory

func OsDirectoryCtor

func OsDirectoryCtor(path string, extension string) Directory

type ExcludedTestsDirectory

type ExcludedTestsDirectory struct {
	// contains filtered or unexported fields
}

func (ExcludedTestsDirectory) Structure

func (excludedTestsDirectory ExcludedTestsDirectory) Structure() ([]Path, error)

type FileNameVariants

type FileNameVariants interface {
	AsList() []string
}

func SourceFileNameVariantCtor

func SourceFileNameVariantCtor(path string) FileNameVariants

func TestFileNameVariantsCtor

func TestFileNameVariantsCtor(path string) FileNameVariants

type FilteredByConfigFiles

type FilteredByConfigFiles struct {
	// contains filtered or unexported fields
}

func (FilteredByConfigFiles) Structure

func (filteredByConfigFiles FilteredByConfigFiles) Structure() ([]Path, error)

type FkDirectory

type FkDirectory struct {
	// contains filtered or unexported fields
}

func (FkDirectory) Structure

func (fkDirectory FkDirectory) Structure() ([]Path, error)

type FkPath

type FkPath struct {
	// contains filtered or unexported fields
}

func (FkPath) Absolute

func (fkPath FkPath) Absolute() (string, error)

func (FkPath) Relative

func (fkPath FkPath) Relative() (string, error)

type OsDirectory

type OsDirectory struct {
	// contains filtered or unexported fields
}

func (OsDirectory) Structure

func (osDirectory OsDirectory) Structure() ([]Path, error)

type Path

type Path interface {
	Relative() (string, error)
	Absolute() (string, error)
}

func FkPathCtor

func FkPathCtor(absolute, dir string) Path

type SourceFileNameVariant

type SourceFileNameVariant struct {
	// contains filtered or unexported fields
}

func (SourceFileNameVariant) AsList

func (srcFileNameVariant SourceFileNameVariant) AsList() []string

type TestFileNameVariants

type TestFileNameVariants struct {
	// contains filtered or unexported fields
}

func (TestFileNameVariants) AsList

func (testFileNameVariant TestFileNameVariants) AsList() []string

Jump to

Keyboard shortcuts

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