Skip to content

[backport 3.3] datetime: calculated plan of c unit tests#12256

Open
tmr-g wants to merge 4 commits intotarantool:release/3.3from
tmr-g:backport/release/3.3/12142
Open

[backport 3.3] datetime: calculated plan of c unit tests#12256
tmr-g wants to merge 4 commits intotarantool:release/3.3from
tmr-g:backport/release/3.3/12142

Conversation

@tmr-g
Copy link
Contributor

@tmr-g tmr-g commented Jan 29, 2026

(This PR is a backport of #12142 (4 -- main, mentioned in the title), #12140 (3 -- minor comment fix), #12096 (2 -- minor one line test fix), #12103 (1 -- minor test fix) to release/3.3)


(4) datetime: calculated plan of c unit tests #12142

Some datetime.c unit tests refactored to simpilfy it's support. The number of tap test checks is being calculated
using the length of test data tables.

Split from #12083


(3) datetime: clarified MOD/DIV desc in datetime.c #12140

Split from #12060


(2) datetime: fixed unit test checks for parse #12096

The tests producing negative result looks as "good" in an unsigned var.

The actual result type ssize_t of datetime_parse_full is used to fix the error detecion.

Needed #12103
Part of #12095


(1) datetime: unit tests temporary commented out #12103

The tests commented will fail with changes from #12096:

The actual result type ssize_t of datetime_parse_full is used
to fix the error detecion.

These tests produce negative result, which looks as "good" in an unsigned var.

This commit is a target for revert when #12095 would fixed.

Need for #12096
Part of #12095

@tmr-g tmr-g added the full-ci Enables all tests for a pull request label Jan 29, 2026
@coveralls
Copy link

coveralls commented Jan 29, 2026

Coverage Status

coverage: 87.574% (-0.01%) from 87.584%
when pulling e0c6025 on tmr-g:backport/release/3.3/12142
into 776a2b3
on tarantool:release/3.3
.

@tmr-g tmr-g requested review from Buristan and grafin and removed request for Buristan January 29, 2026 14:45
tmr-g added 4 commits January 29, 2026 20:05
The tests commented will fail with changes from tarantool#12096:

> The actual result type `ssize_t` of `datetime_parse_full` is used
to fix the error detecion.

These tests produce negative result, which looks
as "good" in an unsigned var.

This commit is a target for revert when tarantoolgh-12095 would fixed.

Need for tarantool#12096
Part of tarantool#12095

NO_DOC=tests
NO_CHANGELOG=tests

(cherry picked from commit 49eea0e)
The tests producing negative result looks
as "good" in an unsigned var.

The actual result type `ssize_t` of `datetime_parse_full` is used
to fix the error detecion.

Needed tarantool#12103
Part of tarantool#12095

NO_DOC=tests
NO_CHANGELOG=tests

(cherry picked from commit 510e0b0)
NO_TEST=comments
NO_CHANGELOG=comments
NO_DOC=comments

(cherry picked from commit a8c002d)
Some datetime.c unit tests refactored to simpilfy it's support.
The number of tap test checks is being calculated
using the length of test data tables.

NO_DOC=tests
NO_CHANGELOG=tests

(cherry picked from commit f65a6c0)
@tmr-g tmr-g force-pushed the backport/release/3.3/12142 branch from dc37be2 to e0c6025 Compare January 29, 2026 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

full-ci Enables all tests for a pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants