Skip to content
This repository was archived by the owner on Dec 27, 2024. It is now read-only.
This repository was archived by the owner on Dec 27, 2024. It is now read-only.

Add some constructors or setters #426

@smallhive

Description

@smallhive

Writing unit tests requires creating the following structures, to override rpc calls from client:

  • rpc.PutRequestWriter
  • rpc.GetResponseReader
  • rpc.ObjectRangeResponseReader
  • rpc.SearchResponseReader

The problem is, these structures contain private fields of public types and there is no way (neither constructor nor setter) to set them up outside api-go. Without them, some client methods can't be tested without real node

Metadata

Metadata

Assignees

No one assigned

    Labels

    I3Minimal impactS3Minimally significantU4Nothing urgentfeatureCompletely new functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions