...

Source file src/edge-infra.dev/test/snapshot/examples/examples_test.go

Documentation: edge-infra.dev/test/snapshot/examples

     1  package examples
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/stretchr/testify/assert"
     7  
     8  	"edge-infra.dev/test/snapshot"
     9  )
    10  
    11  func TestBytes(t *testing.T) {
    12  	byteValue := GetBytes()
    13  	snapshot.Snap(t, byteValue)
    14  }
    15  
    16  func TestStruct(t *testing.T) {
    17  	result, err := BytesToStruct()
    18  	assert.NoError(t, err)
    19  	snapshot.Snap(t, result)
    20  }
    21  

View as plain text