// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package eventlogger

import (
	"context"
	"testing"
)

func TestFilter(t *testing.T) {
	predicate := func(e *Event) (bool, error) {
		return true, nil
	}
	f := &Filter{Predicate: predicate}

	e := &Event{}
	_, err := f.Process(context.Background(), e)
	if err != nil {
		t.Fatal(err)
	}
}
