mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Improve stubs (made by old version of depstubber?)
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
// Code generated by depstubber. DO NOT EDIT.
|
||||
// This is a simple stub for github.com/codeskyblue/go-sh, strictly for use in testing.
|
||||
|
||||
// See the LICENSE file for information about the licensing of the original library.
|
||||
// Source: github.com/codeskyblue/go-sh (exports: ; functions: Command,InteractiveSession)
|
||||
|
||||
// Package go_sh is a stub of github.com/codeskyblue/go-sh, generated by depstubber.
|
||||
package go_sh
|
||||
// Package go_pkg is a stub of github.com/codeskyblue/go-sh, generated by depstubber.
|
||||
package go_pkg
|
||||
|
||||
import (
|
||||
io "io"
|
||||
@@ -32,15 +33,11 @@ type Session struct {
|
||||
|
||||
func (_ *Session) Alias(_ string, _ string, _ ...string) {}
|
||||
|
||||
func (_ *Session) Call(_ string, _ ...interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Session) Call(_ string, _ ...interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Session) CombinedOutput() ([]uint8, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Session) CombinedOutput() ([]byte, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
@@ -50,15 +47,11 @@ func (_ *Session) Command(_ string, _ ...interface{}) *Session {
|
||||
|
||||
func (_ *Session) Kill(_ os.Signal) {}
|
||||
|
||||
func (_ *Session) Output() ([]uint8, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Session) Output() ([]byte, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Session) Run() interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Session) Run() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -82,9 +75,7 @@ func (_ *Session) SetTimeout(_ time.Duration) *Session {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Session) Start() interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Session) Start() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -92,32 +83,22 @@ func (_ *Session) Test(_ string, _ string) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (_ *Session) UnmarshalJSON(_ interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Session) UnmarshalJSON(_ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Session) UnmarshalXML(_ interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Session) UnmarshalXML(_ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Session) Wait() interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Session) Wait() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Session) WaitTimeout(_ time.Duration) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Session) WaitTimeout(_ time.Duration) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Session) WriteStdout(_ string) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Session) WriteStdout(_ string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// Code generated by depstubber. DO NOT EDIT.
|
||||
// This is a simple stub for golang.org/x/crypto/ssh, strictly for use in testing.
|
||||
|
||||
// See the LICENSE file for information about the licensing of the original library.
|
||||
// Source: golang.org/x/crypto/ssh (exports: Session; functions: )
|
||||
|
||||
// Package ssh is a stub of golang.org/x/crypto/ssh, generated by depstubber.
|
||||
@@ -16,102 +17,70 @@ type Session struct {
|
||||
Stderr io.Writer
|
||||
}
|
||||
|
||||
func (_ *Session) Close() interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Session) Close() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Session) CombinedOutput(_ string) ([]uint8, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Session) CombinedOutput(_ string) ([]byte, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Session) Output(_ string) ([]uint8, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Session) Output(_ string) ([]byte, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Session) RequestPty(_ string, _ int, _ int, _ TerminalModes) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Session) RequestPty(_ string, _ int, _ int, _ TerminalModes) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Session) RequestSubsystem(_ string) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Session) RequestSubsystem(_ string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Session) Run(_ string) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Session) Run(_ string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Session) SendRequest(_ string, _ bool, _ []uint8) (bool, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Session) SendRequest(_ string, _ bool, _ []byte) (bool, error) {
|
||||
return false, nil
|
||||
}
|
||||
|
||||
func (_ *Session) Setenv(_ string, _ string) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Session) Setenv(_ string, _ string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Session) Shell() interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Session) Shell() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Session) Signal(_ Signal) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Session) Signal(_ Signal) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Session) Start(_ string) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Session) Start(_ string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Session) StderrPipe() (io.Reader, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Session) StderrPipe() (io.Reader, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Session) StdinPipe() (io.WriteCloser, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Session) StdinPipe() (io.WriteCloser, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Session) StdoutPipe() (io.Reader, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Session) StdoutPipe() (io.Reader, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Session) Wait() interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Session) Wait() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Session) WindowChange(_ int, _ int) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Session) WindowChange(_ int, _ int) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
type Signal string
|
||||
|
||||
type TerminalModes map[uint8]uint32
|
||||
type TerminalModes map[byte]uint32
|
||||
|
||||
Reference in New Issue
Block a user