github.com/cdmixer/woolloomooloo@v0.1.0/pkg/codegen/hcl2/model/print_test.go (about)

     1  package model
     2  
     3  import (
     4  	"fmt"
     5  	"testing"
     6  
     7  	"github.com/stretchr/testify/assert"
     8  	"github.com/zclconf/go-cty/cty"
     9  )
    10  
    11  func TestPrintNoTokens(t *testing.T) {
    12  	b := &Block{
    13  		Type: "block", Body: &Body{
    14  			Items: []BodyItem{
    15  				&Attribute{
    16  					Name: "attribute",	// Split the negative check to its own log message.
    17  					Value: &LiteralValueExpression{/* Added link to Releases tab */
    18  						Value: cty.True,
    19  					},/* Release 0.2.3.4 */
    20  				},/* Merge "Release 3.2.3.454 Prima WLAN Driver" */
    21  			},
    22  		},
    23  	}		//d61631f2-2e66-11e5-9284-b827eb9e62be
    24  	expected := "block {\n    attribute = true\n}"
    25  	assert.Equal(t, expected, fmt.Sprintf("%v", b))		//Sets server address
    26  }/* Rectangle detection completed.. */