Repository navigation
feat: add IsReadOnly to the client Options - #101
Conversation
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 15 |
| Duplication | 0 |
🟢 Coverage 91.67% diff coverage · +2.33% coverage variation
Metric Results Coverage variation ✅ +2.33% coverage variation Diff coverage ✅ 91.67% diff coverage Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (39799c7) Report Missing Report Missing Report Missing Head commit (5f43c96) 177 (+10) 108 (+10) 61.02% (+2.33%) Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#101) 12 11 91.67% Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%1 Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct.
AI Reviewer: run a review on demand. To trigger the first review automatically, go to your organization or repository integration settings. AI can make mistakes. Always validate suggestions.
TIP This summary will be updated as you push new changes.
The client is configured by the
Optionsclass (there is no ClientOptions file), soIsReadOnly(default false) goes there. A new internalReadOnlyHandlerwraps the handler in both constructors, reads it on every request and throwsInvalidOperationExceptionbefore sending anything other than GET, HEAD or OPTIONS. ServiceNow's Table API reads are all GETs, so there is no read-only POST allow-list. Credential-free tests inReadOnlyOptionTestsusing the stub handler pattern.