-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add unit test #4
Conversation
WalkthroughThe pull request introduces enhancements to the Changes
Sequence DiagramsequenceDiagram
participant User
participant Vogen
participant Validator
User->>Vogen: New()
Vogen->>Validator: Validate inputs
alt Invalid FilePath
Validator-->>User: ErrInvalidFilePath
end
alt Invalid PackageName
Validator-->>User: ErrInvalidPackageName
end
User->>Vogen: AppendValueObjects()
Vogen->>Validator: Validate ValueObject
alt Empty StructName
Validator-->>User: ErrStructNameEmpty
end
alt Invalid Fields
Validator-->>User: ErrInvalidField
end
Poem
Tip CodeRabbit's docstrings feature is now available as part of our Early Access Program! Simply use the command 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
✅ Files skipped from review due to trivial changes (1)
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. 🪧 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
CodeRabbit Configuration File (
|
Code Metrics Report
Details | | main (89e9de2) | #4 (37ce975) | +/- |
|---------------------|----------------|--------------|-------|
+ | Coverage | 86.5% | 95.5% | +8.9% |
| Files | 2 | 2 | 0 |
| Lines | 89 | 89 | 0 |
+ | Covered | 77 | 85 | +8 |
- | Test Execution Time | 12s | 17s | +5s | Code coverage of files in pull request scope (87.3% → 94.9%)
Reported by octocov |
Summary by CodeRabbit
Documentation
vogen
tool as a library for generating Value Objects in GoTests
vogen
packageNew
andAppendValueObjects
methodsBug Fixes
ErrInvalidFieldName
toErrInvalidField