Ran
|
Jobs
1
|
Files
479
|
Run time
1min
|
Badge
Embed ▾
README BADGES
|
push
github
datetime: test RFC 3339 and ISO 8601 formats The commit 3c40366172e3 ("datetime, lua: date parsing functions") introduced a function `datetime.parse()`. The function accepts a datetime format: 'iso8601', 'rfc3339' and a custom datetime format. However, 'iso8601' as well as 'rfc3339' is a set of datetime formats (see [1] and [2]), and `datetime.parse()` supports a subset of these formats. There is a documentation issue [3], where we should describe what formats are supported and what formats are not. The patch adds a tests for most of supported formats. The tests were created using a page about date and time formats in ISO 8601 and RFC 3339 standards [2] and these tests are not exhaustive. More thorough testing can be done with property-based testing and randomization. It will be a subject of the following commits. 1. https://datatracker.ietf.org/doc/html/rfc3339 2. https://ijmacd.github.io/rfc3339-iso8601/ 3. https://github.com/tarantool/doc/issues/3155 Follows up #6731 Needed for tarantool/doc#3155 Co-authored-by: Sergey Kaplun <skaplun@tarantool.org> NO_CHANGELOG=testing NO_DOC=tarantool/doc#3155 (cherry picked from commit dcb196366)
62924 of 114088 branches covered (55.15%)
93774 of 109145 relevant lines covered (85.92%)
2437628.26 hits per line
Lines | Coverage | ∆ | File |
---|---|---|---|
1 |
96.55 |
-1.15% | src/histogram.c |
1 |
95.85 |
-0.52% | src/box/lua/init.c |
1 |
90.16 |
-0.55% | src/lib/salad/mhash.h |
1 |
87.31 |
0.0% | src/box/box.cc |
1 |
91.45 |
0.0% | src/lib/swim/swim.c |
3 |
92.35 |
-0.14% | src/box/vinyl.c |
4 |
93.31 |
-1.27% | src/lib/swim/swim_io.c |
15 |
91.49 |
-2.5% | src/box/memtx_space.c |
ID | Job ID | Ran | Files | Coverage | |
---|---|---|---|---|---|
1 | 10399729784.1 | 479 |
85.92 |
GitHub Action Run |
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
---|