post-processor/docker-save: remove unused test functions (#8447)
This commit is contained in:
parent
2b3935778e
commit
8146b39986
|
@ -1,32 +1,11 @@
|
||||||
package dockersave
|
package dockersave
|
||||||
|
|
||||||
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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue