Move Go code to src/
This commit is contained in:
20
src/main_test.go
Normal file
20
src/main_test.go
Normal file
@ -0,0 +1,20 @@
|
||||
// Copyright 2025, IPng Networks GmbH, Pim van Pelt <pim@ipng.ch>
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"os"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestMainCompiles(t *testing.T) {
|
||||
// This test simply ensures that main package compiles
|
||||
// More comprehensive integration tests would require mocking VPP and SNMP
|
||||
if os.Getenv("BE_MAIN") == "1" {
|
||||
// This would run main(), but we skip it in tests
|
||||
return
|
||||
}
|
||||
|
||||
// Just test that we can access main package
|
||||
t.Log("Main package compiles successfully")
|
||||
}
|
Reference in New Issue
Block a user