Subject

org.llm4s.agent.testkit.ReplayContract.Subject
trait Subject

An external target under test, in a state of its own: a fresh one per case. It performs effect slot (0 or 1) on a part of the target of its own - a file each, a store key each - through the target's own guarded code path, as a tool or hook of the harness would.

Attributes

Source
ReplayContract.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class EditSubject

Members list

Value members

Abstract methods

def initial(slot: Int): String

What observe shows before the effect.

What observe shows before the effect.

Attributes

Source
ReplayContract.scala
def interfere(slot: Int): Unit

Changes slot slot's part of the target as another thread would.

Changes slot slot's part of the target as another thread would.

Attributes

Source
ReplayContract.scala
def name: String

Names the target in the suite's output.

Names the target in the suite's output.

Attributes

Source
ReplayContract.scala
def observe(slot: Int): Result[String]

The observable state of slot slot's part of the target.

The observable state of slot slot's part of the target.

Attributes

Source
ReplayContract.scala
def once(slot: Int): String

What observe shows once the effect has been applied exactly once.

What observe shows once the effect has been applied exactly once.

Attributes

Source
ReplayContract.scala
def perform(context: RunContext, slot: Int): Result[Value]

Performs effect slot under context through the target's guarded code path - building its key with context.effectKey - and returns its outcome as JSON, or the guard's Left.

Performs effect slot under context through the target's guarded code path - building its key with context.effectKey - and returns its outcome as JSON, or the guard's Left.

Attributes

Source
ReplayContract.scala

The support class this subject exercises.

The support class this subject exercises.

Attributes

Source
ReplayContract.scala

Concrete methods

How many applied keys a Transactional target still holds; 0 for other targets.

How many applied keys a Transactional target still holds; 0 for other targets.

Attributes

Source
ReplayContract.scala

Whether the effect may run again (the tool's ToolHints.idempotent); only Unverifiable reads it.

Whether the effect may run again (the tool's ToolHints.idempotent); only Unverifiable reads it.

Attributes

Source
ReplayContract.scala