mirror of
				https://github.com/go-delve/delve.git
				synced 2025-10-31 10:47:27 +08:00 
			
		
		
		
	Default DebugCommands() to include null replay
This commit is contained in:
		| @ -39,7 +39,7 @@ func TestCommandRegister(t *testing.T) { | ||||
| } | ||||
|  | ||||
| func TestCommandReplay(t *testing.T) { | ||||
| 	cmds := Commands{make(map[string]cmdfunc)} | ||||
| 	cmds := DebugCommands() | ||||
| 	cmds.Register("foo", func() error { return fmt.Errorf("registered command") }) | ||||
| 	cmd := cmds.Find("foo") | ||||
|  | ||||
| @ -57,7 +57,7 @@ func TestCommandReplay(t *testing.T) { | ||||
|  | ||||
| func TestCommandReplayWithoutPreviousCommand(t *testing.T) { | ||||
| 	var ( | ||||
| 		cmds = Commands{make(map[string]cmdfunc)} | ||||
| 		cmds = DebugCommands() | ||||
| 		cmd  = cmds.Find("") | ||||
| 		err  = cmd() | ||||
| 	) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Derek Parker
					Derek Parker