...

Source file src/github.com/launchdarkly/go-jsonstream/v3/jwriter/writer_marshal_test.go

Documentation: github.com/launchdarkly/go-jsonstream/v3/jwriter

     1  package jwriter
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/launchdarkly/go-jsonstream/v3/internal/commontest"
     7  
     8  	"github.com/stretchr/testify/assert"
     9  )
    10  
    11  func TestMarshalJSONWithWriter(t *testing.T) {
    12  	data, err := MarshalJSONWithWriter(ExampleStructWrapper(commontest.ExampleStructValue))
    13  	assert.NoError(t, err)
    14  	assert.Equal(t, commontest.ExampleStructData, data)
    15  }
    16  

View as plain text