Files
podman/pkg/util
ROKUMATE a37ca160aa pkg/util: add tests for ParseRestartPolicy
ParseRestartPolicy parses the value of the --restart flag and had no
unit test. It handles several distinct cases: bare policy names, the
"never" -> "no" normalization (case-insensitive), on-failure with a
retry count, and a number of error paths (retries specified on a
non-on-failure policy, non-numeric or negative retry counts, and too
many colon-separated fields). Add a table-driven unit test covering the
happy paths and each error branch.

Signed-off-by: ROKUMATE <rohitkumawat0110@gmail.com>
2026-08-20 20:54:42 +05:30
..
2025-09-26 09:09:54 -06:00
2025-09-10 16:17:04 +02:00
2025-11-11 12:32:46 +01:00
2026-04-22 14:02:25 -05:00
2026-08-14 01:35:03 +05:30