github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/lang/state/functionstate_test.go (about)

     1  package state
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/lmorg/murex/test/count"
     7  )
     8  
     9  // TestStateStringer tests stringer has ran
    10  func TestStateStringer(t *testing.T) {
    11  	count.Tests(t, 9)
    12  
    13  	defer func() {
    14  		if r := recover(); r != nil {
    15  			t.Log(r)
    16  			t.Error("Not all constants have been stringified")
    17  		}
    18  	}()
    19  
    20  	t.Log(Undefined.String())
    21  	t.Log(MemAllocated.String())
    22  	t.Log(Assigned.String())
    23  	t.Log(Starting.String())
    24  	t.Log(Executing.String())
    25  	t.Log(Executed.String())
    26  	t.Log(Terminating.String())
    27  	t.Log(AwaitingGC.String())
    28  	t.Log(Stopped.String())
    29  }