post-processor/digitalocean-import: drop unused test functions

This commit is contained in:
Lars Lehtonen 2019-12-10 06:59:24 -08:00
parent 5e81c6f44e
commit 20d375f705
No known key found for this signature in database
GPG Key ID: 8137D474EBCB04F2
1 changed files with 0 additions and 21 deletions

View File

@ -1,32 +1,11 @@
package digitaloceanimport package digitaloceanimport
import ( import (
"bytes"
"testing" "testing"
"github.com/hashicorp/packer/packer" "github.com/hashicorp/packer/packer"
) )
func testConfig() map[string]interface{} {
return map[string]interface{}{}
}
func testPP(t *testing.T) *PostProcessor {
var p PostProcessor
if err := p.Configure(testConfig()); err != nil {
t.Fatalf("err: %s", err)
}
return &p
}
func testUi() *packer.BasicUi {
return &packer.BasicUi{
Reader: new(bytes.Buffer),
Writer: new(bytes.Buffer),
}
}
func TestPostProcessor_ImplementsPostProcessor(t *testing.T) { func TestPostProcessor_ImplementsPostProcessor(t *testing.T) {
var _ packer.PostProcessor = new(PostProcessor) var _ packer.PostProcessor = new(PostProcessor)
} }