From 2e3f6a4c5194e2f571f488e81cd1511fe3fbba48 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 5 Jan 2025 19:45:24 +0900 Subject: [PATCH] helper/bwrap: move test out of bwrap package Signed-off-by: Ophestra --- helper/bwrap/config_test.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/helper/bwrap/config_test.go b/helper/bwrap/config_test.go index 8590723..0170bcf 100644 --- a/helper/bwrap/config_test.go +++ b/helper/bwrap/config_test.go @@ -1,19 +1,21 @@ -package bwrap +package bwrap_test import ( "slices" "testing" + + "git.gensokyo.uk/security/fortify/helper/bwrap" ) func TestConfig_Args(t *testing.T) { testCases := []struct { name string - conf *Config + conf *bwrap.Config want []string }{ { name: "xdg-dbus-proxy constraint sample", - conf: (&Config{ + conf: (&bwrap.Config{ Unshare: nil, UserNS: false, Clearenv: true, @@ -71,7 +73,7 @@ func TestConfig_Args(t *testing.T) { }, { name: "fortify permissive default nixos", - conf: (&Config{ + conf: (&bwrap.Config{ Unshare: nil, Net: true, UserNS: true,