mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-22 00:08:00 +00:00
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> |
||
|---|---|---|
| .. | ||
| tlsutil | ||
| changes.go | ||
| changes_test.go | ||
| filters.go | ||
| filters_test.go | ||
| kube.go | ||
| mount_opts.go | ||
| mount_opts_linux.go | ||
| mount_opts_other.go | ||
| rlimit.go | ||
| utils.go | ||
| utils_darwin.go | ||
| utils_freebsd.go | ||
| utils_linux.go | ||
| utils_linux_test.go | ||
| utils_supported.go | ||
| utils_test.go | ||
| utils_unsupported.go | ||
| utils_windows.go | ||