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

tarantool / tarantool / 11273371464
88%

Build:
DEFAULT BRANCH: master
Ran 10 Oct 2024 12:00PM UTC
Jobs 1
Files 515
Run time 2min
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 11:46AM UTC coverage: 87.306% (-0.01%) from 87.317%
11273371464

push

github

Buristan
test: add additional tests for a strptime()

The testsuite "Datetime string parsing by format (detailed)"
tests parsing of a string with various conversion specifications.
However, `tostring(dt)` is used as a test oracle, and all these
testcases do not test some conversion specifications at all
because the metamethod `__tostring` for the datetime object uses
`:format()` with the default format string.

Due to missed tests for conversion specifications, the behavior
described in #10470 was missed:

```
tarantool> dt = date.parse('Mon', {format = '%a'})
tarantool> dt
---
- 1970-01-01T00:00:00Z
...

tarantool> dt:format('%a')
---
- Thu
...
```

The patch adds tests for `strptime` with all possible conversion
specifications described in strftime(3) [1][2].

1. https://man.freebsd.org/cgi/man.cgi?strftime(3)
2. https://pubs.opengroup.org/onlinepubs/009695399/functions/strptime.html

Follows up #8588
Follows up #6731
Relates to #10470

NO_CHANGELOG=testing
NO_DOC=testing

69145 of 122879 branches covered (56.27%)

101942 of 116764 relevant lines covered (87.31%)

2641126.01 hits per line

Jobs
ID Job ID Ran Files Coverage
1 11273371464.1 10 Oct 2024 12:00PM UTC 0
87.31
GitHub Action Run
Source Files on build 11273371464
Detailed source file information is not available for this build.
  • Back to Repo
  • 109b18df on github
  • Prev Build on master (#11256382700)
  • Next Build on master (#11273647290)
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