Allow to switch between database types in Gentoo Parser

Define types and allows to switch between boltdb and inmemory
This commit is contained in:
Ettore Di Giacinto
2019-11-03 13:37:45 +01:00
parent 847f93b8b7
commit f3623cbb38
5 changed files with 38 additions and 21 deletions

View File

@@ -26,7 +26,7 @@ var _ = Describe("GentooBuilder", func() {
Context("Simple test", func() {
It("parses correctly deps", func() {
gb := NewGentooBuilder(&SimpleEbuildParser{}, 20)
gb := NewGentooBuilder(&SimpleEbuildParser{}, 20, InMemory)
tree, err := gb.Generate("../../../../tests/fixtures/overlay")
Expect(err).ToNot(HaveOccurred())
defer func() {