Documentation
¶
Index ¶
- Constants
- func AppendEvidenceStep(run RunState, step EvidenceStep) error
- func ClearPendingMapAction(root string)
- func CurrentScreen(root string) string
- func GenerateReport(run RunState) (string, error)
- func ObserveExpectedScreen(root string, cfg Config, run RunState, rawTree, screenID string) error
- func ObserveExpectedScreenWithDriver(root string, cfg Config, run RunState, rawTree, screenID, driver string) error
- func ObserveScreen(root string, cfg Config, run RunState, rawTree string) (string, error)
- func Run(ctx context.Context, args []string, stdout, stderr io.Writer) error
- func SaveAppMap(root string, m AppMap) error
- func SaveConfig(root string, cfg Config) error
- func SaveCurrentRun(root string, run RunState) error
- func SaveScreen(root string, screen Screen) error
- func SetCurrentScreen(root, screenID, runID string)
- func SetPendingMapAction(root string, pending pendingMapAction)
- func ValidateAppMap(m AppMap) error
- type AppMap
- type CLI
- type Capabilities
- type CommandResult
- type Config
- type Edge
- type Element
- type EvidenceStep
- type ExecRunner
- type Flow
- type FlowCondition
- type FlowStep
- type GlobalOptions
- type LaunchCandidate
- type LaunchCommands
- type LaunchConfig
- type Output
- type Recognizer
- type ReportData
- type RunState
- type Runner
- type Screen
- type ScreenObservation
- type Simulator
- type VideoValidation
Constants ¶
View Source
const ( MapDirName = ".mav/map" MapScreensDirName = ".mav/map/screens" MapIndexFile = ".mav/map/index.json" MapCurrentFile = ".mav/map/current.json" MapPendingFile = ".mav/map/pending.json" )
View Source
const ( MavDir = ".mav" ConfigFile = ".mav/config.yaml" AppMapFile = ".mav/app-map.yaml" CurrentRunRef = ".mav/current-run" )
View Source
const EvidenceStepsFile = "evidence.jsonl"
Variables ¶
This section is empty.
Functions ¶
func AppendEvidenceStep ¶
func AppendEvidenceStep(run RunState, step EvidenceStep) error
func ClearPendingMapAction ¶
func ClearPendingMapAction(root string)
func CurrentScreen ¶
func GenerateReport ¶
func ObserveExpectedScreen ¶
func ObserveExpectedScreenWithDriver ¶ added in v0.2.0
func ObserveScreen ¶
func SaveAppMap ¶
func SaveConfig ¶
func SaveCurrentRun ¶
func SaveScreen ¶
func SetCurrentScreen ¶
func SetCurrentScreen(root, screenID, runID string)
func SetPendingMapAction ¶
func SetPendingMapAction(root string, pending pendingMapAction)
func ValidateAppMap ¶
Types ¶
type AppMap ¶
type AppMap struct {
AppID string `json:"app_id"`
Start string `json:"start"`
Screens map[string]Screen `json:"-"`
}
func DefaultAppMap ¶
func LoadAppMap ¶
type Capabilities ¶ added in v0.0.10
type Config ¶
type Config struct {
ProjectName string
Root string
AppTarget string
DeviceTarget string
BundleID string
ProcessName string
SimulatorUDID string
SimulatorName string
SimulatorRuntime string
Locale string
Language string
LogSubsystem string
LogCategory string
PreferredUIDriver string
AllowShell bool
Launch LaunchConfig
Tools map[string]bool
}
func DefaultConfig ¶
func LoadConfig ¶
type Edge ¶
type Element ¶
type Element struct {
ID string `json:"id,omitempty"`
Label string `json:"label,omitempty"`
Role string `json:"role,omitempty"`
Value string `json:"value,omitempty"`
Frame string `json:"frame,omitempty"`
Enabled string `json:"enabled,omitempty"`
Subrole string `json:"subrole,omitempty"`
Title string `json:"title,omitempty"`
PID string `json:"pid,omitempty"`
Focused string `json:"focused,omitempty"`
}
func ExtractElements ¶
type EvidenceStep ¶
type EvidenceStep struct {
Name string `json:"name"`
Note string `json:"note,omitempty"`
File string `json:"file"`
Kind string `json:"kind"`
CreatedAt string `json:"created_at"`
}
func LoadEvidenceSteps ¶
func LoadEvidenceSteps(run RunState) []EvidenceStep
type ExecRunner ¶
type ExecRunner struct{}
func (ExecRunner) Run ¶
func (ExecRunner) Run(ctx context.Context, name string, args ...string) CommandResult
type Flow ¶
type FlowCondition ¶
type GlobalOptions ¶
type LaunchCandidate ¶ added in v0.0.10
type LaunchCommands ¶ added in v0.0.10
type LaunchConfig ¶ added in v0.0.10
type LaunchConfig struct {
Mode string
Commands LaunchCommands
}
type Output ¶
type Recognizer ¶
type ReportData ¶
type RunState ¶
type RunState struct {
ID string
Dir string
LogsPath string
Commands string
Processes string
Started time.Time
}
func NewRunState ¶
type Screen ¶
type Screen struct {
ID string `json:"id"`
Title string `json:"title,omitempty"`
Driver string `json:"driver,omitempty"`
AssertID string `json:"assert_id,omitempty"`
AssertText string `json:"assert_text,omitempty"`
Recognizers []Recognizer `json:"recognizers,omitempty"`
Elements []Element `json:"elements,omitempty"`
Edges []Edge `json:"edges,omitempty"`
TreeFile string `json:"tree_file,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
}
func LoadScreen ¶
type ScreenObservation ¶ added in v0.0.6
type ScreenObservation struct {
Screen string
Source string
PreviousScreen string
Elements []Element
}
func ObserveScreenDetailed ¶ added in v0.0.6
func ObserveScreenDetailedWithDriver ¶ added in v0.2.0
type Simulator ¶
func ListSimulators ¶
type VideoValidation ¶ added in v0.0.7
func ValidateEvidenceVideo ¶ added in v0.0.7
func ValidateEvidenceVideo(path string) VideoValidation
Click to show internal directories.
Click to hide internal directories.