Increase test coverage (core, then readers/writers, then TUI) #45
Open
opened 2026-10-03 08:03:01 +00:00 by warkanum
·
3 comments
No Branch/Tag Specified
master
docs/test-plans-status
v1.0.86
v1.0.85
v1.0.84
v1.0.83
v1.0.82
v1.0.81
v1.0.80
v1.0.79
v1.0.78
v1.0.77
v1.0.76
v1.0.75
v1.0.74
v1.0.73
v1.0.72
v1.0.71
v1.0.70
v1.0.69
v1.0.68
v1.0.67
v1.0.66
v1.0.65
v1.0.64
v1.0.63
v1.0.62
v1.0.61
v1.0.60
v1.0.59
v1.0.58
v1.0.57
v1.0.56
v1.0.55
v1.0.54
v1.0.53
v1.0.52
v1.0.51
v1.0.50
v1.0.49
v1.0.48
v1.0.47
v1.0.46
v1.0.45
v1.0.44
v1.0.43
v1.0.42
v1.0.41-1-gf4b8fc5
v1.0.41
v1.0.40
v1.0.38-2-gee88c07-1-gdc9172c-dirty
v1.0.38-2-gee88c07
v1.0.39
v1.0.38
v1.0.37-1-g480038d
v1.0.37
v1.0.36
v1.0.35
v1.0.34
v1.0.33
v1.0.32
v1.0.31
v1.0.30
v1.0.29
v1.0.28
v1.0.27
v1.0.26
v1.0.25
v1.0.24
v1.0.22
v1.0.21
v1.0.20
v1.0.19
v1.0.18
v1.0.17
v1.0.16
v1.0.15
v1.0.14
v1.0.13
v1.0.12
v1.0.11
v1.0.10
v1.0.9
v1.0.8
v1.0.7
v1.0.6
v1.0.5
v1.0.4
v1.0.3
v1.0.2
v1.0.1
v1.0.0
Labels
Clear labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
The priority is critical
Priority
High
The priority is high
Priority
Low
The priority is low
Priority
Medium
The priority is medium
Reviewed
Confirmed
Issue has been confirmed
Reviewed
Duplicate
This issue or pull request already exists
Reviewed
Invalid
Invalid issue
Reviewed
Won't Fix
This issue won't be fixed
Status
Abandoned
Somebody has started to work on this but abandoned work
Status
Blocked
Something is blocking this issue or pull request
Status
Need More Info
Feedback is required to reproduce issue or to continue work
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Medium
3
The priority is medium
Priority
Low
4
The priority is low
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Status
Abandoned
3
Somebody has started to work on this but abandoned work
Milestone
No items
No Milestone
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: wdevs/relspecgo#45
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Baseline: 51.0% statements (2026-10-03). Plans:
tests/_plans/(index inREADME.md). Container DB tool:tests/dbtest/.Order
pkg/models(20.4% -> 99.1) — models.mdpkg/sqltypes(67.0% -> 87.0) — sqltypes.mdpkg/diff,pkg/merge(65.5 / 75.1 -> 92.5 / 98.1) — diff-merge.mdcmd/relspec,pkg/jobs(49.3 / 72.0 -> 71.3 / 96.6) — cmd.mdreaders/pgsql,writers/pgsql,pkg/pgsql(16.0 / 74.0 / 87.8 -> 92.4 / 86.5 / 87.8, with live DB) — pgsql.mdwriters/sqlexec(19.4 -> 99.0, with live DB) — sqlexec.mdwriters/template(8.5 -> 98.9) — template.mdpkg/ui(3.8 -> 69.9) — ui.mdBeyond the plans (previously deferred)
Bugs fixed along the way
cloneTabledropped relationships; skip-tables ignored for new schemaspgEnum('X')('col')column syntaxOutputPath, non-deterministic column/constraint orderRemaining
writers/dctx(77%) —WriteDatabase,WriteTable,mapDataTypereaders/mssql(2.6),readers/mysql(2.5), live MSSQL execute pathtunmodule)readers/pgsql/writers/sqlexecare low without a live DB (19 / 24)Dispatcher assignment (2026-10-03T12:00:00+02:00). Forge: Gitea; issue: wdevs/relspecgo#45 — Increase test coverage. Classification: non-simple broad test implementation requiring scoped design judgment; Ornith excluded. Selected worker: Claude Code CLI, model claude-sonnet-5-5; live binary/version/auth checks and bounded probe passed. Worker session/process: to be launched after this assignment comment is verified. Worktree: /home/hermes/work/issue-agents/wdevs/relspecgo/issue-45-test-coverage. Branch: issue-45-test-coverage (not pushed yet). Plan: read issue and CLAUDE.md, choose the smallest coherent coverage slice, add focused table-driven tests without unrelated refactors, run targeted verification, commit, push, create PR, and post delivery evidence.
Delivery: implemented the smallest coherent high-value slice from
tests/_plans/sqltypes.md.issue-45-test-coveragefd9c37cd25d3f003fe902bce1f519ef52daa58fapkg/sqltypes/sql_types_scalar_test.gocovering scalarValue,Int64/Float64conversions, SqlDate JSON null/invalid behavior, now constructors,NewSql,NewSqlFloat32, andToJSONDT.Verification completed:
GOTMPDIR=/home/hermes/.tmp GOCACHE=/home/hermes/.cache/go go test ./pkg/sqltypes— PASSGOTMPDIR=/home/hermes/.tmp GOCACHE=/home/hermes/.cache/go go test -race ./pkg/sqltypes— PASSGOTMPDIR=/home/hermes/.tmp GOCACHE=/home/hermes/.cache/go go test -cover ./pkg/sqltypes— PASS, 69.8% statementsGOTMPDIR=/home/hermes/.tmp GOCACHE=/home/hermes/.cache/go go test ./...— PASSGOTMPDIR=/home/hermes/.tmp GOCACHE=/home/hermes/.cache/go go vet ./pkg/sqltypes— PASSgit diff --check— PASSThe worktree is clean and the remote branch resolves to the commit above. This PR intentionally does not claim the remaining models, diff/merge, readers/writers, or TUI plan slices.
Progress: PR #51 (sqltypes coverage) merged. Issue stays open for the remaining phases.