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

vocdoni / saas-backend / 17680125865 / 1
63%
main: 63%

Build:
DEFAULT BRANCH: main
Ran 12 Sep 2025 04:22PM UTC
Files 70
Run time 2s
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

12 Sep 2025 04:20PM UTC coverage: 57.118% (-1.9%) from 59.0%
17680125865.1

push

github

emmdim
stripe: rewrite from scratch

Complete Stripe Architecture Rewrite
Key Improvements Made:

    Clean Architecture Implementation
        Separated concerns with distinct layers: stripe/client.go (API wrapper), stripe/service.go (business logic), api/stripe_handlers.go (HTTP handlers)
        Dependency injection pattern for better testability
        Configuration-driven setup replacing hardcoded values

    Concurrency & Performance Fixes
        Replaced global mutex bottleneck with per-organization locking using stripe/locks.go
        Implemented idempotent webhook processing with event store (stripe/eventstore.go)
        Added proper context support throughout the codebase

    Type Safety & Error Handling
        Fixed golangci-lint type assertion issues by replacing unsafe map[string]any with proper struct unmarshaling
        Created structured error types in stripe/errors.go with proper error codes
        Intelligent HTTP status code handling without manual intervention requirements

    Configuration & Environment Management
        Environment-based configuration system in stripe/config.go
        Support for different plan types (Essential, Premium, Free, Custom)
        Removed hardcoded product IDs and made system configurable

    Database Integration Improvements
        Removed static assets/plans.json file dependency
        Dynamic plan loading from Stripe API or database
        Fixed test failures by ensuring default plans are available during organization creation

5641 of 9876 relevant lines covered (57.12%)

31.28 hits per line

Source Files on job 17680125865.1
  • Tree
  • List 70
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 17680125865
  • 0e854201 on github
  • Prev Job for on main (#17604253849.1)
  • Next Job for on main (#17763003869.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc