Ran
|
Jobs
1
|
Files
479
|
Run time
2min
|
Badge
Embed ▾
README BADGES
|
push
github
datetime: support tz field in :totable() `datetime` module has a function `:totable()` that converts the information from a datetime object into the table format. The commit 43e10ed34949 ("build, lua: built-in module datetime") added `tzoffset` field to the datetime object and to table produced by `:totable()`. The commit 9ee45289e012 ("datetime: datetime.TZ array") added fields `tz` and `tzindex` to the datetime object, but not to the table produced by `:totable()`. The patch fixes that. Note, `tzindex` is not added, because it is an internal field. ``` tarantool> datetime.parse('2004-12-01T00:00 Europe/Moscow'):totable() --- - tz: Europe/Moscow sec: 0 min: 0 yday: 336 day: 1 nsec: 0 isdst: false wday: 4 tzoffset: 180 month: 12 year: 2004 hour: 0 ... ``` Fixes #10331 Follows up #6751 @TarantoolBot document Title: Support of tz field in :totable() In addition to the `tzoffset` in a table produced by `:totable` we added `tz` field. ``` tarantool> datetime.parse('2004-12-01T00:00 Europe/Moscow'):totable() --- - tz: Europe/Moscow sec: 0 min: 0 yday: 336 day: 1 nsec: 0 isdst: false wday: 4 tzoffset: 180 month: 12 year: 2004 hour: 0 ... ``` (cherry picked from commit 90552e55e)
62900 of 114088 branches covered (55.13%)
93779 of 109145 relevant lines covered (85.92%)
2596140.4 hits per line
Lines | Coverage | ∆ | File |
---|---|---|---|
1 |
93.11 |
-0.33% | src/box/raft.c |
1 |
89.36 |
-0.11% | src/box/vy_scheduler.c |
1 |
91.45 |
0.0% | src/lib/swim/swim.c |
1 |
94.52 |
-0.15% | src/box/vy_tx.c |
2 |
87.05 |
-0.14% | src/box/vy_run.c |
2 |
87.31 |
0.57% | src/box/box.cc |
2 |
85.71 |
-9.52% | src/lib/core/tt_sigaction.c |
3 |
84.31 |
-5.88% | src/box/journal.c |
3 |
89.72 |
-0.24% | src/box/applier.cc |
3 |
92.81 |
-2.16% | src/box/vy_point_lookup.c |
3 |
89.13 |
-0.53% | src/box/wal.c |
4 |
90.54 |
-0.22% | src/box/memtx_engine.cc |
8 |
94.47 |
-1.77% | src/box/vy_read_iterator.c |
ID | Job ID | Ran | Files | Coverage | |
---|---|---|---|---|---|
1 | 10385087529.1 | 479 |
85.92 |
GitHub Action Run |
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
---|