github.com/hairyhenderson/gomplate/v3@v3.11.7/internal/tests/integration/base64_test.go (about)

     1  package integration
     2  
     3  import (
     4  	"testing"
     5  )
     6  
     7  func TestBase64_Encode(t *testing.T) {
     8  	inOutTest(t, `{{ "foo" | base64.Encode }}`, "Zm9v")
     9  }
    10  
    11  func TestBase64_Decode(t *testing.T) {
    12  	inOutTest(t, `{{ "Zm9v" | base64.Decode }}`, "foo")
    13  }