Skip to content

Commit 29289d9

Browse files
committed
option_test.go: update TestSet, TestGet and TestFlag about new fields.
1 parent e53a74b commit 29289d9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

option/option_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ func init() {
1919
func TestSet(t *testing.T) {
2020
t.Run("common", func(t *testing.T) {
2121
opts := &Options{
22+
DisableSysmon: true,
23+
DisableWatchdog: true,
2224
NotEraseInstruction: true,
2325
NotAdjustProtect: true,
2426
TrackCurrentThread: true,
@@ -34,6 +36,8 @@ func TestSet(t *testing.T) {
3436
o, err = Get(output, 64)
3537
require.NoError(t, err)
3638
opts = &Options{
39+
DisableSysmon: false,
40+
DisableWatchdog: false,
3741
NotEraseInstruction: false,
3842
NotAdjustProtect: false,
3943
TrackCurrentThread: false,
@@ -59,6 +63,8 @@ func TestSet(t *testing.T) {
5963
func TestGet(t *testing.T) {
6064
t.Run("common", func(t *testing.T) {
6165
opts := &Options{
66+
DisableSysmon: true,
67+
DisableWatchdog: true,
6268
NotEraseInstruction: true,
6369
NotAdjustProtect: true,
6470
TrackCurrentThread: true,
@@ -96,6 +102,8 @@ func TestGet(t *testing.T) {
96102

97103
func TestFlag(t *testing.T) {
98104
opts := Options{
105+
DisableSysmon: true,
106+
DisableWatchdog: true,
99107
NotEraseInstruction: true,
100108
NotAdjustProtect: true,
101109
TrackCurrentThread: true,

0 commit comments

Comments
 (0)