update sterescope + add json presenter

This commit is contained in:
Alex Goodman
2020-05-20 18:29:06 -04:00
parent 28cc9b3dc1
commit 17b4b26fbb
21 changed files with 372 additions and 67 deletions
+4 -3
View File
@@ -1,19 +1,20 @@
package scope
import (
"testing"
"github.com/anchore/stereoscope/pkg/image"
"github.com/anchore/stereoscope/pkg/tree"
"testing"
)
func testScopeImage(t *testing.T) *image.Image {
t.Helper()
one := image.NewLayer(0, nil)
one := image.NewLayer(nil)
one.Tree = tree.NewFileTree()
one.Tree.AddPath("/tree/first/path.txt")
two := image.NewLayer(1, nil)
two := image.NewLayer(nil)
two.Tree = tree.NewFileTree()
two.Tree.AddPath("/tree/second/path.txt")