github.com/hashicorp/packer@v1.14.3/post-processor/compress/artifact_test.go (about)

     1  // Copyright (c) HashiCorp, Inc.
     2  // SPDX-License-Identifier: BUSL-1.1
     3  
     4  package compress
     5  
     6  import (
     7  	"testing"
     8  
     9  	packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
    10  )
    11  
    12  func TestArtifact_ImplementsArtifact(t *testing.T) {
    13  	var raw interface{}
    14  	raw = &Artifact{}
    15  	if _, ok := raw.(packersdk.Artifact); !ok {
    16  		t.Fatalf("Artifact should be a Artifact!")
    17  	}
    18  }