fs

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 15 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMockFile added in v0.9.0

func CreateMockFile(path string, fileName string) (bool, error)

func NewMockExportFS

func NewMockExportFS(isTestMode bool) *mockExport

func NewTeleFS

func NewTeleFS() *telemetry

func NewTestReportFS

func NewTestReportFS(isTestMode bool) *testReport

func ParseBytes added in v0.9.0

func ParseBytes(data []byte, hc map[string][]HistCfg) (map[string][]HistCfg, error)

func SetHistory added in v0.9.0

func SetHistory(hc *HistCfg) error

func UserHomeDir

func UserHomeDir(isNewConfigPath bool) string

func Write added in v0.9.0

func Write(filePath string, data map[string][]HistCfg) error

Types

type HistCfg added in v0.9.0

type HistCfg struct {
	TcPath   string              `json:"tc_path" yaml:"tc_path"`
	MockPath string              `json:"mock_path" yaml:"mock_path"`
	AppPath  string              `json:"app_path" yaml:"app_path"`
	TestRuns map[string][]string `json:"test_runs" yaml:"test_runs"`
}

func NewHistCfgFS added in v0.9.0

func NewHistCfgFS() *HistCfg

func (*HistCfg) CaptureTestsEvent added in v0.9.0

func (hc *HistCfg) CaptureTestsEvent(tc_path, mock_path, app_path, test_run_path, test_run_id string) error

func (*HistCfg) CapturedRecordEvents added in v0.9.0

func (hc *HistCfg) CapturedRecordEvents(tc_path, mock_path, app_path string) error

Todo : optimize this function

func (*HistCfg) GetHistory added in v0.9.0

func (hc *HistCfg) GetHistory() error

UI can be rendered by fetching this method

Jump to

Keyboard shortcuts

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