scribe-org / scribe-org/Scribe-Server

Add sqlmock-based tests for the database package

Open
#92 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

blocked testing
Dominant language
Go
Stars
12
Forks
14
Avg merge
1d 4h
Merged PRs (30d)
4

Description

Terms
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.