Ran
|
Jobs
1
|
Files
479
|
Run time
1min
|
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)
63149 of 114407 branches covered (55.2%)
93995 of 109354 relevant lines covered (85.95%)
2787927.55 hits per line
Lines | Coverage | ∆ | File |
---|---|---|---|
1 |
95.24 |
-1.59% | src/lib/small/include/small/quota.h |
1 |
96.0 |
-4.0% | src/lib/core/trigger.h |
1 |
91.45 |
0.0% | src/lib/swim/swim.c |
1 |
94.52 |
-0.15% | src/box/vy_tx.c |
2 |
87.16 |
-0.14% | src/box/vy_run.c |
2 |
95.18 |
-0.42% | src/lua/fiber.c |
4 |
91.97 |
-0.09% | src/box/vinyl.c |
5 |
89.52 |
-0.5% | src/box/memtx_engine.cc |
6 |
93.41 |
-0.99% | src/box/replication.cc |
ID | Job ID | Ran | Files | Coverage | |
---|---|---|---|---|---|
1 | 11289282753.1 | 479 |
85.95 |
GitHub Action Run |
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
---|