1
0
Fork 0
mirror of https://github.com/vbatts/go-mtree.git synced 2025-09-13 13:53:20 +00:00
go-mtree/test/cli
Aleksa Sarai 604ab42863
compare: improve tar_time truncation
Rather than parsing the value as a float and then truncating it, just
parse it as an integer in the first place (this also adds some
validation that we are parsing a reasonable-looking value).

While we're at it, add some integration tests for this code to make sure
this quite complicated special-case behaviour doesn't regress.

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
2025-09-09 22:48:56 +10:00
..
0001.sh *: rework the test tools, so no dep is ignored 2022-04-03 23:15:40 -04:00
0001a.sh *: begin incorporating the "validate" subcommand 2023-10-24 10:25:18 -04:00
0002.sh *: rework the test tools, so no dep is ignored 2022-04-03 23:15:40 -04:00
0003.sh tests: cli: properly check for exit status codes in error cases 2025-09-08 23:53:21 +10:00
0004.sh *: rework the test tools, so no dep is ignored 2022-04-03 23:15:40 -04:00
0005.sh *: rework the test tools, so no dep is ignored 2022-04-03 23:15:40 -04:00
0006.sh *: rework the test tools, so no dep is ignored 2022-04-03 23:15:40 -04:00
0007.sh *: rework the test tools, so no dep is ignored 2022-04-03 23:15:40 -04:00
0008.sh *: rework the test tools, so no dep is ignored 2022-04-03 23:15:40 -04:00
0009.sh tests: cli: properly check for exit status codes in error cases 2025-09-08 23:53:21 +10:00
0010.sh tests: cli: properly check for exit status codes in error cases 2025-09-08 23:53:21 +10:00
0011.sh tests: cli: properly check for exit status codes in error cases 2025-09-08 23:53:21 +10:00
0012.sh compare: properly compare tar_time and time 2025-09-09 22:47:49 +10:00
0012trunc.sh compare: improve tar_time truncation 2025-09-09 22:48:56 +10:00