internal

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2025 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ColorBrightBlueStyle = lipgloss.NewStyle().
	Foreground(lipgloss.Color("12")).
	Bold(true)

listにチェック済みの色

View Source
var ColorBrightGreenStyle = lipgloss.NewStyle().
	Foreground(lipgloss.Color("10")).
	Bold(true)

list移動時のカーソルがさしてる時の色

View Source
var ColorBrightRedBoldStyle = lipgloss.NewStyle().
	Foreground(lipgloss.Color("9")).
	Bold(true)

error字のタイトル色

View Source
var ColorLightPinkStyle = lipgloss.NewStyle().
	Foreground(lipgloss.Color("#FFB6C1")).
	Bold(false)

各Viewのヘッダ文言用

View Source
var ConfigFilePath = ""

Functions

func GetCoveragedFilePaths

func GetCoveragedFilePaths(level int) ([]string, error)

func GetPHPCodeFilePaths

func GetPHPCodeFilePaths() ([]string, error)

func GetPHPFilePaths

func GetPHPFilePaths(targetDir string, ignore []string) ([]string, error)

func GetPHPTestFilePaths

func GetPHPTestFilePaths() ([]string, error)

func StoreConfig

func StoreConfig(cfg Config) error

Types

type Config

type Config struct {
	// 実行されるphpコマンドの前に指定するコマンドを設定
	CommandToSpecifyBeforePHPCommand string

	// 直前に実行されたpucoで選択されたテストファイルパスとカバレッジ対象のパスを残す
	// 設定ファイルに微妙な感じだけど...あと、プロジェクト関係なくなのを何とかしたい気もする
	LatestExecutedData struct {
		SelectedTestFilePaths       []string
		SelectedCoverageTargetPaths []string
	}
}

func LoadConfig

func LoadConfig() (Config, error)

func (Config) IsMatchedCoverageTargetFile

func (c Config) IsMatchedCoverageTargetFile(currentCoverageFilePath string) bool

直前の実行時に選択されたカバレッジ取得対象ファイルと合致してるか

func (Config) IsMatchedTestFile

func (c Config) IsMatchedTestFile(currentTestFilePath string) bool

直前の実行時に選択されたテストファイルと合致してるか

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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