Ran
|
Jobs
1
|
Files
514
|
Run time
2min
|
Badge
Embed ▾
README BADGES
|
push
github
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 (cherry picked from commit 109b18df4)
68492 of 121737 branches covered (56.26%)
101083 of 115842 relevant lines covered (87.26%)
2492529.82 hits per line
Lines | Coverage | ∆ | File |
---|---|---|---|
1 |
93.56 |
-0.16% | src/box/txn_limbo.c |
1 |
87.87 |
0.08% | src/box/vy_run.c |
1 |
95.05 |
-0.31% | src/box/raft.c |
1 |
95.24 |
-1.59% | src/lib/small/include/small/quota.h |
1 |
90.85 |
0.13% | src/box/box.cc |
1 |
84.53 |
-0.36% | src/lib/core/coio.c |
2 |
93.12 |
0.21% | src/lib/core/fiber.c |
2 |
94.11 |
-0.39% | src/lua/fiber.c |
3 |
91.03 |
-0.31% | src/box/vy_scheduler.c |
4 |
93.31 |
-1.27% | src/lib/swim/swim_io.c |
15 |
91.82 |
-2.36% | src/box/memtx_space.c |
ID | Job ID | Ran | Files | Coverage | |
---|---|---|---|---|---|
1 | 11289281421.1 | 514 |
87.26 |
GitHub Action Run |
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
---|