-
Notifications
You must be signed in to change notification settings - Fork 122
Feat/base64 predicate #921
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThis pull request adds a new predicate Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant I as Interpreter
participant P as Base64Encoded Predicate
participant C as Converter
U->>I: Invoke base64_encoded/3 with parameters
I->>P: Lookup predicate from registry
alt Encoding operation
P->>C: Call forwardConverter with plain input and options
else Decoding operation
P->>C: Call backwardConverter with encoded input and options
end
C-->>P: Return processed result or error
P-->>I: Return result wrapped in Promise
I-->>U: Deliver final result
Possibly related PRs
Suggested reviewers
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (1.64.8)Error: you are using a configuration file for golangci-lint v2 with golangci-lint v1: please use golangci-lint v2 📜 Recent review detailsConfiguration used: .coderabbit.yaml ⛔ Files ignored due to path filters (26)
📒 Files selected for processing (5)
🧰 Additional context used📓 Path-based instructions (1)`**/*.go`: Review the Go code, point out issues relative to principles of clean code, expressiveness, and performance.
🧬 Code Definitions (2)x/logic/interpreter/registry.go (1)
x/logic/predicate/encoding.go (4)
⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (9)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
d3efe2e
to
6810209
Compare
6810209
to
02b8bb7
Compare
Codecov ReportAttention: Patch coverage is
@@ Coverage Diff @@
## main #921 +/- ##
==========================================
- Coverage 45.08% 38.49% -6.59%
==========================================
Files 113 113
Lines 6399 6476 +77
==========================================
- Hits 2885 2493 -392
- Misses 3379 3863 +484
+ Partials 135 120 -15
... and 12 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Introduces the
base64_encoded/3
predicate to thelogic
module, strongly inspired by the library(base64) from SWI-Prolog.Supports both encoding and decoding modes, along with options for output format (
as(atom)
oras(string)
), padding, and charset (classic
orurl
).Summary by CodeRabbit
New Features
Tests