ipfs / ipfs/gateway-conformance
make sure builders / expectations API do not mutate the input struct
Open
- Dominant language
- Go
- Stars
- 19
- Forks
- 15
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 5
Description
Not all APIs are pure right now:
- for example, the `tar` API mutates the builder object.
- some requests and header checks are also doing side effects (with the header map for example).
We want to make sure these do not mutate the input object so that a pattern like this is correct:
```go
req1 := SomeCheck().A().B()
req2 := req1.C().D()
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.