github.com/metux/go-metabuild@v0.0.0-20240118143255-d9ed5ab697f9/spec/global_test.go (about)

     1  package spec
     2  
     3  import (
     4  	"testing"
     5  )
     6  
     7  func TestLoad(t *testing.T) {
     8  	LoadTestSpec(t)
     9  
    10  	t.Log("-- Checks")
    11  	for _, y := range GlobalTestSpec.GetChecks() {
    12  		y.Init()
    13  		t.Logf("check %s\n", y)
    14  	}
    15  
    16  	t.Log("")
    17  
    18  	t.Log("-- Objects")
    19  	for x, y := range GlobalTestSpec.GetTargetObjects() {
    20  		t.Logf("object %s: %s -- %s\n", x, y, y.Type())
    21  	}
    22  
    23  	t.Log("")
    24  	t.Logf("done")
    25  }