22 lines
375 B
Go
22 lines
375 B
Go
package entity
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestPackageBuild(t *testing.T) {
|
|
// Basic test to verify the package builds
|
|
entity := NewEntity()
|
|
if entity == nil {
|
|
t.Fatal("NewEntity returned nil")
|
|
}
|
|
}
|
|
|
|
func TestEntityStats(t *testing.T) {
|
|
entity := NewEntity()
|
|
|
|
stats := entity.GetInfoStruct()
|
|
if stats == nil {
|
|
t.Error("Expected InfoStruct to be initialized")
|
|
}
|
|
} |