Files
2025-05-23 12:59:04 +01:00

25 lines
658 B
Go

package main
import "testing"
func Test_main(t *testing.T) {
// Test that main function doesn't panic during setup
// The actual GraphQL calls will fail, but we want to test the setup code
defer func() {
if r := recover(); r != nil {
t.Errorf("main() panicked: %v", r)
}
}()
// Call main() to get coverage - it will fail on network calls but that's expected
// This tests the NewConnection() call and query compilation
main()
}
func Test_samplePackageExists(t *testing.T) {
// This test ensures the sample package is properly structured
// and can be imported/compiled
// Test passes if we reach this point without compilation errors
}