internal/sshd/session_test.go
Function TestHandleShell
has 76 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func TestHandleShell(t *testing.T) {
testCases := []struct {
desc string
cmd string
errMsg string
Function TestHandleExec
has 55 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func TestHandleExec(t *testing.T) {
testCases := []struct {
desc string
payload []byte
expectedErr error