github.com/gramework/gramework@v1.8.1-0.20231027140105-82555c9057f5/test/infrastructure_test.go (about)

     1  package test
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/gramework/gramework"
     7  	"github.com/gramework/gramework/infrastructure"
     8  )
     9  
    10  func TestServeInfrastructure(t *testing.T) {
    11  	defer func() {
    12  		if e := recover(); e != nil {
    13  			t.Logf("Serve Infrastructure should not panic, but %v", e)
    14  			t.FailNow()
    15  		}
    16  	}()
    17  	app := gramework.New()
    18  	i := infrastructure.New()
    19  	app.ServeInfrastructure(i)
    20  }