|
| 1 | +package dbg |
| 2 | + |
| 3 | +import ( |
| 4 | + "testing" |
| 5 | +) |
| 6 | + |
| 7 | +func TestSetDebugSymbol(t *testing.T) { |
| 8 | + tests := []struct { |
| 9 | + name string |
| 10 | + }{ |
| 11 | + { |
| 12 | + name: "TestSetDebugSymbol", |
| 13 | + }, |
| 14 | + } |
| 15 | + for _, tt := range tests { |
| 16 | + t.Run(tt.name, func(t *testing.T) { |
| 17 | + SetDebugSymbol() |
| 18 | + if !GetDebugSymbol() { |
| 19 | + t.Errorf("GetDebugSymbol() = got %v, want %v", false, true) |
| 20 | + } |
| 21 | + }) |
| 22 | + } |
| 23 | +} |
| 24 | + |
| 25 | +func TestSetDebugParseIsMethod(t *testing.T) { |
| 26 | + tests := []struct { |
| 27 | + name string |
| 28 | + }{ |
| 29 | + { |
| 30 | + name: "TestSetDebugParseIsMethod", |
| 31 | + }, |
| 32 | + } |
| 33 | + for _, tt := range tests { |
| 34 | + t.Run(tt.name, func(t *testing.T) { |
| 35 | + SetDebugParseIsMethod() |
| 36 | + if !GetDebugParseIsMethod() { |
| 37 | + t.Errorf("GetDebugParseIsMethod() = got %v, want %v", false, true) |
| 38 | + } |
| 39 | + }) |
| 40 | + } |
| 41 | +} |
| 42 | + |
| 43 | +func TestSetDebugEditSymMap(t *testing.T) { |
| 44 | + tests := []struct { |
| 45 | + name string |
| 46 | + }{ |
| 47 | + { |
| 48 | + name: "TestSetDebugEditSymMap", |
| 49 | + }, |
| 50 | + } |
| 51 | + for _, tt := range tests { |
| 52 | + t.Run(tt.name, func(t *testing.T) { |
| 53 | + SetDebugEditSymMap() |
| 54 | + if !GetDebugEditSymMap() { |
| 55 | + t.Errorf("GetDebugEditSymMap() = %v, want %v", false, true) |
| 56 | + } |
| 57 | + }) |
| 58 | + } |
| 59 | +} |
| 60 | + |
| 61 | +func TestSetDebugVisitTop(t *testing.T) { |
| 62 | + tests := []struct { |
| 63 | + name string |
| 64 | + }{ |
| 65 | + { |
| 66 | + "TestSetDebugVisitTop", |
| 67 | + }, |
| 68 | + } |
| 69 | + for _, tt := range tests { |
| 70 | + t.Run(tt.name, func(t *testing.T) { |
| 71 | + SetDebugVisitTop() |
| 72 | + if !GetDebugVisitTop() { |
| 73 | + t.Errorf("GetDebugVisitTop() = %v, want %v", false, true) |
| 74 | + } |
| 75 | + }) |
| 76 | + } |
| 77 | +} |
| 78 | + |
| 79 | +func TestSetDebugCollectFuncInfo(t *testing.T) { |
| 80 | + tests := []struct { |
| 81 | + name string |
| 82 | + }{ |
| 83 | + { |
| 84 | + name: "TestSetDebugCollectFuncInfo", |
| 85 | + }, |
| 86 | + } |
| 87 | + for _, tt := range tests { |
| 88 | + t.Run(tt.name, func(t *testing.T) { |
| 89 | + SetDebugCollectFuncInfo() |
| 90 | + if !GetDebugCollectFuncInfo() { |
| 91 | + t.Errorf("GetDebugCollectFuncInfo() got = %v, want %v", false, true) |
| 92 | + } |
| 93 | + }) |
| 94 | + } |
| 95 | +} |
| 96 | + |
| 97 | +func TestSetDebugNewSymbol(t *testing.T) { |
| 98 | + tests := []struct { |
| 99 | + name string |
| 100 | + }{ |
| 101 | + { |
| 102 | + name: "TestSetDebugNewSymbol", |
| 103 | + }, |
| 104 | + } |
| 105 | + for _, tt := range tests { |
| 106 | + t.Run(tt.name, func(t *testing.T) { |
| 107 | + SetDebugNewSymbol() |
| 108 | + if !GetDebugNewSymbol() { |
| 109 | + t.Errorf("GetDebugNewSymbol() = %v, want %v", false, true) |
| 110 | + } |
| 111 | + }) |
| 112 | + } |
| 113 | +} |
| 114 | + |
| 115 | +func TestSetDebugFileType(t *testing.T) { |
| 116 | + tests := []struct { |
| 117 | + name string |
| 118 | + }{ |
| 119 | + { |
| 120 | + name: "TestSetDebugFileType", |
| 121 | + }, |
| 122 | + } |
| 123 | + for _, tt := range tests { |
| 124 | + t.Run(tt.name, func(t *testing.T) { |
| 125 | + SetDebugFileType() |
| 126 | + if !GetDebugFileType() { |
| 127 | + t.Errorf("GetDebugFileType() = %v, want %v", false, true) |
| 128 | + } |
| 129 | + }) |
| 130 | + } |
| 131 | +} |
0 commit comments