testing library
Classes
- AsyncMessageGrouper
- Collects stream data into messages by interpreting it as base-128 encoded lengths interleaved with raw data.
- SyncMessageGrouper
- Groups bytes in delimited proto format into the bytes for each message.
- TestAsyncWorkerConnection
- A StdAsyncWorkerConnection which records its responses.
- TestAsyncWorkerLoop
- A AsyncWorkerLoop for testing.
- TestStdin
-
Interface for a mock
Stdin
object that allows you to add bytes manually. - TestStdinAsync
-
A mock
Stdin
object which only implementslisten
. [...] - TestStdinSync
-
A
Stdin
mock object which only implementsreadByteSync
. - TestStdoutStream
-
A
Stdout
mock object. - TestSyncWorkerConnection
- A StdSyncWorkerConnection which records its responses.
- TestSyncWorkerLoop
- A SyncWorkerLoop for testing.
- TestWorkerConnection
- Interface for a TestWorkerConnection which records its responses
- TestWorkerLoop
- Interface for a TestWorkerLoop which allows you to enqueue responses.
Functions
-
protoToDelimitedBuffer(
GeneratedMessage message) → List< int>