/internal/app
|
1 2 |
cd $project_root/internal/app go test -c -gcflags "all=-N -l" # Produces app.test |
|
1 2 3 4 5 6 7 8 |
./app.test # --- FAIL: Test_Start (0.90s) # --- FAIL: Test_Start/Start_UI_mode (0.90s) # app_test.go:48: # Error Trace: /Users/roman/dev/go/goto/internal/app/app_test.go:48 # Error: An error is expected but got nil. # Test: Test_Start/Start_UI_mode # FAIL |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
dlv exec app.test (dlv) b app_test.go:45 # => Breakpoint 1 set at 0x10104afa8 for .../internal/app.Test_Start.func1() ./app_test.go:45 (dlv) c # => [Breakpoint 1] github.com/grafviktor/goto/internal/app.Test_Start.func1() ./app_test.go:45 (hits goroutine(20):1 total:1) (PC: 0x10104afa8) 40: } 41: 42: for _, tt := range tests { 43: t.Run(tt.name, func(t *testing.T) { 44: st.AppMode = tt.AppMode => 45: err := Start(&st) 46: 47: if tt.wantErr { 48: require.Error(t, err) 49: } else { 50: require.NoError(t, err) |
|
1 2 3 4 5 6 7 8 9 10 11 12 |
{ "version": "0.2.0", "configurations": [ { "name": "Debug Specifig Test", "type": "go", "request": "launch", "mode": "exec", "program": "${workspaceFolder}/internal/app/app.test" } ] } |