Finish minimal feature set, start with tests

This commit is contained in:
Daniel 2018-09-10 19:01:28 +02:00
parent 3d60431376
commit 06a34f931e
34 changed files with 651 additions and 346 deletions

View file

@ -3,6 +3,8 @@ package query
import (
"fmt"
"strings"
"github.com/Safing/portbase/database/accessor"
)
// Not negates the supplied condition.
@ -16,8 +18,8 @@ type notCond struct {
notC Condition
}
func (c *notCond) complies(f Fetcher) bool {
return !c.notC.complies(f)
func (c *notCond) complies(acc accessor.Accessor) bool {
return !c.notC.complies(acc)
}
func (c *notCond) check() error {