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

sapcc / limes / 11275725433
80%

Build:
DEFAULT BRANCH: master
Ran 10 Oct 2024 02:08PM UTC
Jobs 1
Files 62
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

10 Oct 2024 02:06PM UTC coverage: 78.435% (-0.06%) from 78.498%
11275725433

push

github

web-flow
Add Duration Extension API (#576)

* Add scaffold to extend commitment duration depending on its config

* Implement functionality to scuffold

* Extension: use created_at date as basis, not now()

* Align unit test to check for creation_date specifically

* Rename API from extend to update duration

* Adjust duration extension check to use direct date methods

* Add documentation

* Remove compareTo helper method
replace it with a string compare

* Fix leftovers wich mentioned extend-duration

* Update internal/api/commitment.go

Change provided duration check to a slice contain instead of checking their string representations.

Co-authored-by: Stefan Majewsky <stefan.majewsky@sap.com>

* Fix message attributes wich were undefined due to last commits changes

* Omit explicit db transaction due to having only 1 operation on the database

* Adjust error message and return state on forbidden duration conversion

* Reject expired or superseded commitments

* Fix unit test clock on last case

* Replace wording in test comments
replace date with the proper word duration

---------

Co-authored-by: Stefan Majewsky <stefan.majewsky@sap.com>

61 of 83 new or added lines in 2 files covered. (73.49%)

5234 of 6673 relevant lines covered (78.44%)

63.92 hits per line

Jobs
ID Job ID Ran Files Coverage
1 11275725433.1 10 Oct 2024 02:08PM UTC 0
78.44
GitHub Action Run
Source Files on build 11275725433
Detailed source file information is not available for this build.
  • Back to Repo
  • f73791da on github
  • Prev Build on master (#11252116711)
  • Next Build on master (#11286574326)
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