• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

datatug / backend / 34974619258
87%

Build:
DEFAULT BRANCH: main
Ran 15 Sep 2026 01:23PM UTC
Jobs 1
Files 3
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 Sep 2026 01:22PM UTC coverage: 90.323%. First build
34974619258

push

github

trakhimenok
refactor: rebuild the module to the extension-backend standard

Restructures the module to sneat-ext-template's ports-and-adapters standard
(sneat-specs/standards/extension-backend-architecture.md):

- The domain depends on dal-go only. It no longer imports sneat-go-core's
  apicore/extension/facade/verify or sneat-core-modules' dal4userus, so it
  builds anywhere with no GOPRIVATE or credential setup.
- facade4datatug is an injected-store Facade (dal.DB + ports) instead of
  package-level functions over platform helpers; the IDGenerator port is
  declared in ports.go and will be adapted in the host.
- models4datatug owns the DBOs and their dalgo keys. The user-ext key
  users/{uid}/ext/{extID} is built here (pinned by a test) rather than imported
  from sneat-core-modules.
- The HTTP handler and the Extension() wiring move to the host composition root
  (sneat-go/pkg/modules/datatug), per the standard - they are not part of the
  domain module.
- CI is the template's backend-ci.yml (strongo Standard Go CI + vX.Y.Z
  auto-tag) using the repo's GITHUB_TOKEN, so it needs no org secret.

Also fixes a real defect the new test setup caught: the transaction read the
user's index AFTER inserting the project record, which Firestore rejects
("read after write in transaction"). Reads now precede the first write, and a
test covers creating a second project so the update path is exercised too.

Tests run against sneatcoretesting.NewMemoryDB() (in-memory dal-go, test-only
dependency) - no Firestore emulator. go build / go vet / go test clean, 92.5%
statement coverage, gofmt clean.

47 of 50 new or added lines in 3 files covered. (94.0%)

56 of 62 relevant lines covered (90.32%)

0.9 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
87.76
facade4datatug/project_create.go
Jobs
ID Job ID Ran Files Coverage
1 34974619258.1 15 Sep 2026 01:23PM UTC 3
90.32
GitHub Action Run
Source Files on build 34974619258
  • Tree
  • List 3
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 11864902 on github
  • Next Build on main (#34975033938)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc