-
-
Notifications
You must be signed in to change notification settings - Fork 1
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 for excel #55
Conversation
Warning Rate Limit Exceeded@nao1215 has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 20 minutes and 12 seconds before requesting another review. How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. WalkthroughThe update from version 0.6.5 to 0.7.0 in the Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
This comment has been minimized.
This comment has been minimized.
si := NewSQLite3Interactor(interactor, NewSQL()) | ||
_, _, got := si.ExecSQL(context.Background(), "BEGIN") | ||
|
||
want := "not support transaction control language" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci] reported by reviewdog 🐶
string not support transaction control language
has 5 occurrences, make it a constant (goconst)
si := NewSQLite3Interactor(interactor, NewSQL()) | ||
_, _, got := si.ExecSQL(context.Background(), "CREATE TABLE test (id INTEGER PRIMARY KEY, name TEXT)") | ||
|
||
want := "not support data definition language" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci] reported by reviewdog 🐶
string not support data definition language
has 4 occurrences, make it a constant (goconst)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
@@ -1,2 +1,2 @@ | |||
## [](https://github.com/nao1215/sqly/compare/v0.6.5...) (2024-04-29) | |||
## [](https://github.com/nao1215/sqly/compare/v0.7.0...) (2024-04-30) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please ensure to remove the extra blank lines following this entry to maintain a clean and professional changelog format.
- ## [](https://github.com/nao1215/sqly/compare/v0.7.0...) (2024-04-30)
+ ## [v0.7.0](https://github.com/nao1215/sqly/compare/v0.7.0...) (2024-04-30)
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.
## [](https://github.com/nao1215/sqly/compare/v0.7.0...) (2024-04-30) | |
## [v0.7.0](https://github.com/nao1215/sqly/compare/v0.7.0...) (2024-04-30) |
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
} | ||
}) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci] reported by reviewdog 🐶
syntax error: non-declaration statement outside function body (typecheck)
} | ||
}) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci] reported by reviewdog 🐶
expected declaration, found '}' (typecheck)
This comment has been minimized.
This comment has been minimized.
} | ||
|
||
tempFilePath := filepath.Join(os.TempDir(), "dump.xlsx") | ||
defer os.Remove(tempFilePath) // Clean up the temporary file after the test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci] reported by reviewdog 🐶
Error return value of os.Remove
is not checked (errcheck)
HOTTEST report
Reported by hottest |
Code Metrics Report
Details | | main (31089ab) | #55 (90c3e46) | +/- |
|---------------------|----------------|---------------|-------|
+ | Coverage | 83.8% | 85.3% | +1.5% |
| Files | 38 | 38 | 0 |
| Lines | 914 | 914 | 0 |
+ | Covered | 766 | 780 | +14 |
+ | Test Execution Time | 45s | 3s | -42s | Reported by octocov |
Summary by CodeRabbit
0.6.5
to0.7.0
.