scribe-org / scribe-org/Scribe-Server
Add sqlmock-based tests for the database package
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 12
- Forks
- 14
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 4
Description
Terms
- I have searched open and closed feature requests
- I agree to follow Scribe-Server's Code of Conduct
Description
sqlmock tests for database/table.go, language.go and versions.go: TableExists, GetTableSchema rejecting invalid names before querying, GetTableData type conversion, code lowercasing and regex extraction, the 1970-01-01 version fallback, and the upsert.
Contribution
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read database/table.go, language.go, and versions.go, then inspect existing tests for the database package and run its Go tests. Add sqlmock coverage for the named functions and cases, including validation, conversions, extraction, fallback, and upsert behavior. Done means the specified paths are tested without requiring a live database.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, sql
- Domain
- backend, databases, testing-qa
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100