From 2f502bc474b0a2acc728539fd55e3d181d700600 Mon Sep 17 00:00:00 2001 From: Hari Om Date: Thu, 26 Mar 2026 13:47:05 +0530 Subject: [PATCH] Add test case for -skip-enforcement flag in BuildArgs --- command/build_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/command/build_test.go b/command/build_test.go index a9726be7b..5cd9bdbcd 100644 --- a/command/build_test.go +++ b/command/build_test.go @@ -1131,6 +1131,16 @@ func TestBuildCommand_ParseArgs(t *testing.T) { }, 0, }, + {fields{defaultMeta}, + args{[]string{"-skip-enforcement", "file.json"}}, + &BuildArgs{ + MetaArgs: MetaArgs{Path: "file.json"}, + ParallelBuilds: math.MaxInt64, + Color: true, + SkipEnforcement: true, + }, + 0, + }, } for _, tt := range tests { t.Run(fmt.Sprintf("%s", tt.args.args), func(t *testing.T) {