Class DummyWriter

A mock implementation of the Writer interface for testing purposes. This writer performs no real actions but can be used to simulate behaviors.

Hierarchy

  • DummyWriter

Implements

Constructors

Methods

  • A mock implementation of the write method. Does not perform any write actions.

    Parameters

    • _data: any

      The data that would normally be written.

    Returns Promise<void>

    A promise that resolves immediately.

  • Handles errors by logging them. In a real-world scenario, this method might handle or rectify errors.

    Parameters

    • error: any

      The error to handle.

    Returns void

  • Fetches a mock status for the provided dataId.

    Parameters

    • dataId: string

      The identifier for the data whose status is being fetched.

    Returns Promise<string>

    A promise that resolves with a dummy status message.

Generated using TypeDoc