1package gpg
2
3import (
4	"context"
5	"testing"
6)
7
8func TestAlwaysTrust(t *testing.T) {
9	ctx := context.Background()
10
11	if IsAlwaysTrust(ctx) {
12		t.Errorf("AlwaysTrust should be false")
13	}
14
15	if !IsAlwaysTrust(WithAlwaysTrust(ctx, true)) {
16		t.Errorf("AlwaysTrust should be true")
17	}
18}
19