(t *testing.T)
| 5 | ) |
| 6 | |
| 7 | func TestLoadModulesWithNilSession(t *testing.T) { |
| 8 | // This test verifies that LoadModules handles nil session gracefully |
| 9 | // In the actual implementation, this would panic, which is expected behavior |
| 10 | defer func() { |
| 11 | if r := recover(); r == nil { |
| 12 | t.Error("expected panic when loading modules with nil session, but didn't get one") |
| 13 | } |
| 14 | }() |
| 15 | |
| 16 | LoadModules(nil) |
| 17 | } |
| 18 | |
| 19 | // Since LoadModules requires a fully initialized session with command-line flags, |
| 20 | // which conflicts with the test runner, we can't easily test the actual module loading. |
nothing calls this directly
no test coverage detected