Skip to main content

Module driver

Module driver 

Source
Expand description

AppleScript driver seam.

Production: OsascriptDriver spawns /usr/bin/osascript -e <script>. Tests: RecordingAppleScript captures every script string and pops queued responses, so unit tests can assert exactly which AppleScript was emitted without ever spawning osascript.

Structs§

OsascriptDriver
Production driver: shells out to /usr/bin/osascript -e <script>.
RecordingAppleScript
Test driver: records every script it’s asked to run without spawning osascript. Tests assert on scripts() and seed push_response() to control return values.

Traits§

AppleScriptDriver