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

Add some constructors or setters #426

Open
smallhive opened this issue Jun 26, 2023 · 0 comments
Open

Add some constructors or setters #426

smallhive opened this issue Jun 26, 2023 · 0 comments
Labels
feature Completely new functionality I3 Minimal impact S3 Minimally significant U4 Nothing urgent

Comments

@smallhive
Copy link

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

@roman-khimov roman-khimov added U4 Nothing urgent S3 Minimally significant I3 Minimal impact feature Completely new functionality labels Dec 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature Completely new functionality I3 Minimal impact S3 Minimally significant U4 Nothing urgent
Projects
None yet
Development

No branches or pull requests

2 participants