Using new() to create a new struct assigns an empty struct to the variable, meaning it can never be tested for nil. This means this code would never detect a missing kernel package. |
||
|---|---|---|
| .. | ||
| distro_test_common | ||
| fedora | ||
| rhel7 | ||
| rhel8 | ||
| rhel9 | ||
| test_distro | ||
| distro.go | ||
| distro_test.go | ||
| image_config.go | ||
| image_config_test.go | ||