View Source MixTestObserver.FileObserver (MixTestObserver v0.1.0)

FileObserver is the process to observe file and call/cast event.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

  • :unlock - Unlock file_event handling and restart file_system, if not, :file_event occurs only onetime.
  • :file_event - Run test through Tester. Observer must be locked immediately to prevent test repeatedly.

Public interface to start observation.

Public interface to unlock.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

  • :unlock - Unlock file_event handling and restart file_system, if not, :file_event occurs only onetime.
  • :file_event - Run test through Tester. Observer must be locked immediately to prevent test repeatedly.
@spec start(path :: String.t()) :: {:ok, pid :: pid()} | :ng

Public interface to start observation.

@spec unlock() :: :ok

Public interface to unlock.