Add tests. They are quite basic ...

This commit is contained in:
Pim van Pelt
2025-06-11 00:02:04 +02:00
parent cb8acc4c13
commit 0a0e3e7055
6 changed files with 518 additions and 0 deletions

20
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")
}