Files
steampipe/pkg/connection
Nathan Wallace 3cfbb59dc5 Fix type assertion panic in logRefreshConnectionResults closes #4807 (#4855)
* Add test for #4807: Potential type assertion panic in logRefreshConnectionResults

Fix test to verify panic is prevented, not expected

The test was written to expect a panic, but after the fix is applied,
the panic should NO LONGER occur. Updated the test to verify that:
1. No panic occurs when handling nil values
2. No panic occurs when handling wrong types
3. No panic occurs when handling nil cobra.Command pointers

This ensures the test passes after the fix is applied.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Fix #4807: Use safe type assertion in logRefreshConnectionResults

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-11-16 11:19:55 -05:00
..