mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2025-01-10 04:19:38 +02:00
21 lines
309 B
Go
21 lines
309 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
var (
|
|
modDir = "/home/mitch/bin/factorio/mods"
|
|
)
|
|
|
|
func TestListInstalledMods(t *testing.T) {
|
|
result, err := listInstalledMods(modDir)
|
|
if err != nil {
|
|
t.Errorf("Error listing mods test: %s", err)
|
|
}
|
|
if len(result) < 1 {
|
|
fmt.Println("No Mods installed")
|
|
}
|
|
}
|