repo
stringlengths
6
47
file_url
stringlengths
77
269
file_path
stringlengths
5
186
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-07 08:35:43
2026-01-07 08:55:24
truncated
bool
2 classes
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/step_rendezvous.go
hrp/step_rendezvous.go
package hrp import ( "sync" "sync/atomic" "time" "github.com/test-instructor/yangfan/server/global" "go.uber.org/zap" ) // StepRendezvous implements IStep interface. type StepRendezvous struct { step *TStep } func (s *StepRendezvous) Name() string { if s.step.Name != "" { return s.step.Name } return s.st...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/testcase_test.go
hrp/testcase_test.go
package hrp import ( "path/filepath" "testing" "github.com/stretchr/testify/assert" "github.com/test-instructor/yangfan/hrp/internal/builtin" ) const ( hrpExamplesDir = "../examples/hrp" ) // tmpl returns template file path func tmpl(relativePath string) string { return filepath.Join("internal/scaffold/templ...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/build.go
hrp/build.go
package hrp import ( "bufio" _ "embed" "fmt" "html/template" "os" "path/filepath" "regexp" "strings" "github.com/httprunner/funplugin/shared" "github.com/pkg/errors" "github.com/test-instructor/yangfan/server/global" "go.uber.org/zap" "github.com/test-instructor/yangfan/hrp/internal/builtin" "github.co...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/plugin_test.go
hrp/plugin_test.go
package hrp import ( "testing" "github.com/stretchr/testify/assert" ) func TestLocateFile(t *testing.T) { // specify target file path _, err := locateFile(tmpl("plugin/debugtalk.go"), PluginGoSourceFile) if !assert.Nil(t, err) { t.Fatal() } // specify path with the same dir _, err = locateFile(tmpl("plugi...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/summary_test.go
hrp/summary_test.go
package hrp import "testing" func TestGenHTMLReport(t *testing.T) { summary := newOutSummary() caseSummary1 := newSummary() caseSummary2 := newSummary() stepResult1 := &StepResult{} stepResult2 := &StepResult{ Name: "Test", StepType: stepTypeRequest, Success: false, ContentSize: 0, Attach...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/parser_test.go
hrp/parser_test.go
package hrp import ( "sort" "testing" "time" "github.com/stretchr/testify/assert" ) func TestBuildURL(t *testing.T) { var url string url = buildURL("https://postman-echo.com", "/get") if !assert.Equal(t, url, "https://postman-echo.com/get") { t.Fatal() } url = buildURL("https://postman-echo.com", "get") ...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/step_grpc_test.go
hrp/step_grpc_test.go
package hrp import ( "github.com/test-instructor/grpc-plugin/demo" "testing" ) var demoGrpc = tmpl("testcases/demo_grpc.json") func TestRunGRPC(t *testing.T) { go demo.StartSvc() defer demo.StopSvc() buildHashicorpPyPlugin() defer removeHashicorpPyPlugin() testCase := TestCasePath(demoGrpc) err := NewRunner(...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/runner.go
hrp/runner.go
package hrp import ( "crypto/tls" _ "embed" "encoding/json" "net" "net/http" "net/http/cookiejar" "net/textproto" "net/url" "path/filepath" "strings" "testing" "time" "github.com/gorilla/websocket" "github.com/httprunner/funplugin" "github.com/jinzhu/copier" "github.com/pkg/errors" "github.com/test-i...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/boomer_test.go
hrp/boomer_test.go
package hrp import ( "testing" "time" ) func TestBoomerStandaloneRun(t *testing.T) { buildHashicorpGoPlugin() defer removeHashicorpGoPlugin() testcase1 := &TestCase{ Config: NewConfig("TestCase1").SetBaseURL("http://httpbin.org"), TestSteps: []IStep{ NewStep("headers"). GET("/headers"). Validate(...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/testcase.go
hrp/testcase.go
package hrp import ( "fmt" "path/filepath" "strings" "github.com/mitchellh/mapstructure" "github.com/pkg/errors" "github.com/test-instructor/yangfan/server/global" "go.uber.org/zap" "github.com/test-instructor/yangfan/hrp/internal/builtin" "github.com/test-instructor/yangfan/hrp/internal/code" ) // ITestCa...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/run_json_test.go
hrp/run_json_test.go
package hrp import ( "testing" ) /*func TestJsonRunner(t *testing.T) { jsonString := `{ "config": { "name": "demo with complex mechanisms", "base_url": "https://postman-echo.com", "variables": { "a": "${sum(10, 2.3)}", "b": 3.45, "n": "${sum_ints(1, 2,...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/yfRunBoomerMaster.go
hrp/yfRunBoomerMaster.go
package hrp import ( "errors" "fmt" "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/model/common/request" "github.com/test-instructor/yangfan/server/model/interfacecase" "gorm.io/gorm" ) func NewBoomerMaster(id uint) *RunBoomerMaster { return &RunBoomerMaster{ ru...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/deleteHrpGOMOD.go
hrp/deleteHrpGOMOD.go
package hrp import ( "fmt" "os" ) func DeleteHrpGOMOD() { fmt.Println("DeleteHrpGOMOD") err := os.Remove("hrp/internal/scaffold/templates/plugin/go.mod") if err != nil { } err = os.Remove("hrp/internal/scaffold/templates/plugin/go.sum") if err != nil { } }
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/step_request_test.go
hrp/step_request_test.go
package hrp import ( "testing" "time" "github.com/stretchr/testify/assert" ) var ( stepGET = NewStep("get with params"). GET("/get"). WithParams(map[string]interface{}{"foo1": "bar1", "foo2": "bar2"}). WithHeaders(map[string]string{"User-Agent": "HttpRunnerPlus"}). WithCookies(map[string]string{"user": "...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/server.go
hrp/server.go
package hrp import ( "context" "errors" "fmt" "io/ioutil" "net/http" "strings" "github.com/mitchellh/mapstructure" "github.com/test-instructor/yangfan/server/global" "go.uber.org/zap" "github.com/test-instructor/yangfan/hrp/internal/json" "github.com/test-instructor/yangfan/hrp/pkg/boomer" ) const jsonCo...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/yfRunAllCase.go
hrp/yfRunAllCase.go
package hrp import ( "github.com/test-instructor/yangfan/server/model/interfacecase" ) type ToTestCase struct { Config interfacecase.ApiConfig TestSteps []interface{} }
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/step_thinktime.go
hrp/step_thinktime.go
package hrp import ( "time" "github.com/test-instructor/yangfan/server/global" "go.uber.org/zap" "github.com/test-instructor/yangfan/hrp/internal/builtin" ) type ThinkTime struct { Time float64 `json:"time" yaml:"time"` } // StepThinkTime implements IStep interface. type StepThinkTime struct { step *TStep } ...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/step_rendezvous_test.go
hrp/step_rendezvous_test.go
package hrp import ( "math" "testing" ) func TestRunCaseWithRendezvous(t *testing.T) { rendezvousBoundaryTestcase := &TestCase{ Config: NewConfig("run request with functions"). SetBaseURL("https://postman-echo.com"). WithVariables(map[string]interface{}{ "n": 5, "a": 12.3, "b": 3.45, }), T...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/yfCaseModel.go
hrp/yfCaseModel.go
package hrp import ( "github.com/test-instructor/yangfan/server/model/interfacecase" ) type ApisCaseModel struct { Case []ITestCase Config interfacecase.ApiConfig SetupCase bool Environs map[string]string } type CaseList struct { Case []ITestCase SetupCase bool }
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/step.go
hrp/step.go
package hrp import ( "github.com/test-instructor/yangfan/hrp/pkg/gidevice" "github.com/test-instructor/yangfan/hrp/pkg/uixt" ) type StepType string const ( stepTypeRequest StepType = "request" stepTypeAPI StepType = "api" stepTypeTestCase StepType = "testcase" stepTypeTransaction StepType = "tra...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/step_grpc.go
hrp/step_grpc.go
package hrp import ( "bytes" "encoding/json" "fmt" "io" "strings" "testing" "time" "github.com/fullstorydev/grpcurl" "github.com/pkg/errors" "github.com/test-instructor/grpc-plugin/plugin" "github.com/test-instructor/yangfan/hrp/internal/builtin" "github.com/test-instructor/yangfan/server/global" "go.ube...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/step_api.go
hrp/step_api.go
package hrp import ( "fmt" "github.com/jinzhu/copier" "github.com/test-instructor/yangfan/server/global" "go.uber.org/zap" "github.com/test-instructor/yangfan/hrp/internal/builtin" ) // IAPI represents interface for api, // includes API and APIPath. type IAPI interface { GetPath() string ToAPI() (*API, error...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/plugin.go
hrp/plugin.go
package hrp import ( "fmt" "os" "path/filepath" "strings" "sync" "github.com/httprunner/funplugin" "github.com/httprunner/funplugin/fungo" "github.com/pkg/errors" "github.com/test-instructor/yangfan/server/global" "go.uber.org/zap" "github.com/test-instructor/yangfan/hrp/internal/code" "github.com/test-i...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/build_test.go
hrp/build_test.go
package hrp import ( "path/filepath" "regexp" "testing" "github.com/stretchr/testify/assert" "github.com/test-instructor/yangfan/hrp/internal/builtin" ) func TestRun(t *testing.T) { err := BuildPlugin(tmpl("plugin/debugtalk.go"), "./debugtalk.bin") if !assert.Nil(t, err) { t.Fatal() } genDebugTalkPyPath...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/parameters_test.go
hrp/parameters_test.go
package hrp import ( "fmt" "testing" "github.com/stretchr/testify/assert" ) func TestLoadParameters(t *testing.T) { testData := []struct { configParameters map[string]interface{} loadedParameters map[string]Parameters }{ { map[string]interface{}{ "username-password": fmt.Sprintf("${parameterize(%s/...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/response_test.go
hrp/response_test.go
package hrp import ( "io" "net/http" "strings" "testing" "github.com/stretchr/testify/assert" ) func TestSearchJmespath(t *testing.T) { testText := `{"a": {"b": "foo"}, "c": "bar", "d": {"e": [{"f": "foo"}, {"f": "bar"}]}}` testData := []struct { raw string expected string }{ {"body.a.b", "foo"}, ...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/step_websocket.go
hrp/step_websocket.go
package hrp import ( "bytes" "fmt" "net/http" "testing" "time" "unsafe" "github.com/gorilla/websocket" "github.com/pkg/errors" "github.com/test-instructor/yangfan/server/global" "go.uber.org/zap" "github.com/test-instructor/yangfan/hrp/internal/builtin" "github.com/test-instructor/yangfan/hrp/internal/js...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/httpstat/main.go
hrp/pkg/httpstat/main.go
// Package httpstat traces HTTP latency infomation (DNSLookup, TCP Connection and so on) on any golang HTTP request. // It uses `httptrace` package. // Inspired by https://github.com/tcnksm/go-httpstat and https://github.com/davecheney/httpstat package httpstat import ( "context" "crypto/tls" "fmt" "net/http" "ne...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/httpstat/demo/main_test.go
hrp/pkg/httpstat/demo/main_test.go
package demo import ( "fmt" "net/http" "testing" "time" "github.com/test-instructor/yangfan/hrp/pkg/httpstat" ) func TestMain(t *testing.T) { var httpStat httpstat.Stat req, _ := http.NewRequest("GET", "https://httprunner.com", nil) ctx := httpstat.WithHTTPStat(req, &httpStat) client := &http.Client{ Ti...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/uixt/touch.go
hrp/pkg/uixt/touch.go
package uixt func (dExt *DriverExt) ForceTouch(pathname string, pressure float64, duration ...float64) (err error) { return dExt.ForceTouchOffset(pathname, pressure, 0.5, 0.5, duration...) } func (dExt *DriverExt) ForceTouchOffset(pathname string, pressure, xOffset, yOffset float64, duration ...float64) (err error) ...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/uixt/swipe_test.go
hrp/pkg/uixt/swipe_test.go
//go:build localtest package uixt import ( "testing" ) func TestSwipeUntil(t *testing.T) { driverExt, err := iosDevice.NewDriver(nil) checkErr(t, err) var point PointF findApp := func(d *DriverExt) error { var err error point, err = d.GetTextXY("抖音") return err } foundAppAction := func(d *DriverExt) er...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/uixt/ios_test.go
hrp/pkg/uixt/ios_test.go
//go:build localtest package uixt import ( "bytes" "fmt" "math" "testing" "time" ) var ( bundleId = "com.apple.Preferences" driver WebDriver ) func setup(t *testing.T) { device, err := NewIOSDevice() if err != nil { t.Fatal(err) } driver, err = device.NewUSBDriver(nil) if err != nil { t.Fatal(err...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/uixt/android_device.go
hrp/pkg/uixt/android_device.go
package uixt import ( "bytes" "context" "fmt" "net" "os/exec" "strings" "github.com/pkg/errors" "github.com/test-instructor/yangfan/server/global" "go.uber.org/zap" "github.com/test-instructor/yangfan/hrp/internal/code" "github.com/test-instructor/yangfan/hrp/internal/json" "github.com/test-instructor/ya...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/uixt/ocr_test.go
hrp/pkg/uixt/ocr_test.go
//go:build ocr package uixt import ( "testing" ) func TestDriverExtOCR(t *testing.T) { driverExt, err := iosDevice.NewDriver(nil) checkErr(t, err) x, y, width, height, err := driverExt.FindTextByOCR("抖音") checkErr(t, err) t.Logf("x: %v, y: %v, width: %v, height: %v", x, y, width, height) driverExt.Driver.Ta...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/uixt/drag_test.go
hrp/pkg/uixt/drag_test.go
//go:build localtest package uixt import ( "testing" ) func TestDriverExt_Drag(t *testing.T) { driverExt, err := iosDevice.NewDriver(nil) checkErr(t, err) pathSearch := "/Users/hero/Documents/temp/2020-05/opencv/IMG_map.png" // err = driverExt.Drag(pathSearch, 300, 500, 2) // checkErr(t, err) err = driverE...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/uixt/tap_test.go
hrp/pkg/uixt/tap_test.go
//go:build localtest package uixt import ( "testing" ) var iosDevice *IOSDevice func init() { iosDevice, _ = NewIOSDevice() } func TestDriverExt_TapWithNumber(t *testing.T) { driverExt, err := iosDevice.NewDriver(nil) checkErr(t, err) pathSearch := "/Users/hero/Documents/temp/2020-05/opencv/flag7.png" err ...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/uixt/client.go
hrp/pkg/uixt/client.go
package uixt import ( "bytes" "context" "encoding/json" "io" "io/ioutil" "net" "net/http" "net/url" "path" "strings" "time" "github.com/test-instructor/yangfan/server/global" "go.uber.org/zap" ) type Driver struct { urlPrefix *url.URL sessionId string client *http.Client } func (wd *Driver) conca...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/uixt/android_test.go
hrp/pkg/uixt/android_test.go
//go:build localtest package uixt import ( "io/ioutil" "testing" "time" ) var uiaServerURL = "http://localhost:6790/wd/hub" func TestDriver_NewSession(t *testing.T) { driver, err := NewUIADriver(nil, uiaServerURL) if err != nil { t.Fatal(err) } firstMatchEntry := make(map[string]interface{}) firstMatchEn...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/uixt/drag.go
hrp/pkg/uixt/drag.go
package uixt func (dExt *DriverExt) Drag(pathname string, toX, toY int, pressForDuration ...float64) (err error) { return dExt.DragFloat(pathname, float64(toX), float64(toY), pressForDuration...) } func (dExt *DriverExt) DragFloat(pathname string, toX, toY float64, pressForDuration ...float64) (err error) { return ...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/uixt/android_device_test.go
hrp/pkg/uixt/android_device_test.go
package uixt import ( "fmt" "testing" "github.com/test-instructor/yangfan/hrp/internal/json" ) func TestConvertPoints(t *testing.T) { data := "10-09 20:16:48.216 I/iesqaMonitor(17845): {\"duration\":0,\"end\":1665317808206,\"ext\":\"输入\",\"from\":{\"x\":0.0,\"y\":0.0},\"operation\":\"Gtf-SendKeys\",\"run_time\":...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/uixt/interface.go
hrp/pkg/uixt/interface.go
package uixt import ( "bytes" "fmt" "math" "reflect" "strconv" "strings" "time" "github.com/test-instructor/yangfan/hrp/internal/builtin" ) var ( DefaultWaitTimeout = 60 * time.Second DefaultWaitInterval = 400 * time.Millisecond ) type AlertAction string const ( AlertActionAccept AlertAction = "accept...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
true
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/uixt/android_elment.go
hrp/pkg/uixt/android_elment.go
package uixt import ( "bytes" "encoding/base64" "encoding/json" "github.com/pkg/errors" "github.com/test-instructor/yangfan/server/global" ) var errElementNotImplemented = errors.New("element method not implemented") type uiaElement struct { parent *uiaDriver id string } func (ue uiaElement) Click() (er...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/uixt/swipe.go
hrp/pkg/uixt/swipe.go
package uixt import ( "fmt" "time" "github.com/pkg/errors" "github.com/test-instructor/yangfan/server/global" "go.uber.org/zap" "github.com/test-instructor/yangfan/hrp/internal/builtin" "github.com/test-instructor/yangfan/hrp/internal/code" ) func assertRelative(p float64) bool { return p >= 0 && p <= 1 } ...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/uixt/gesture_test.go
hrp/pkg/uixt/gesture_test.go
//go:build opencv package uixt import ( "strconv" "strings" "testing" ) func TestDriverExt_GesturePassword(t *testing.T) { split := strings.Split("6304258", "") password := make([]int, len(split)) for i := range split { password[i], _ = strconv.Atoi(split[i]) } driverExt, err := iosDevice.NewDriver(nil) ...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/uixt/gesture.go
hrp/pkg/uixt/gesture.go
//go:build opencv package uixt import ( "image" "sort" ) func (dExt *DriverExt) GesturePassword(pathname string, password ...int) (err error) { var rects []image.Rectangle if rects, err = dExt.FindAllImageRect(pathname); err != nil { return err } sort.Slice(rects, func(i, j int) bool { if rects[i].Min.Y <...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/uixt/opencv_test.go
hrp/pkg/uixt/opencv_test.go
//go:build opencv package uixt import ( "bytes" "image" "image/color" "io/ioutil" "sort" "strconv" "testing" "gocv.io/x/gocv" ) func TestFindImageLocation(t *testing.T) { pathSource := "/Users/hero/Documents/temp/2020-05/opencv/Snipaste_2020-05-18_16-20-31.png" pathSearch := "/Users/hero/Documents/temp/20...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/uixt/ios_device.go
hrp/pkg/uixt/ios_device.go
package uixt import ( "bytes" "encoding/base64" builtinJSON "encoding/json" "fmt" "io" "mime" "mime/multipart" "net" "net/http" "net/url" "os" "regexp" "strconv" "strings" "time" "github.com/pkg/errors" "github.com/test-instructor/yangfan/server/global" "go.uber.org/zap" "github.com/test-instructo...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/uixt/touch_test.go
hrp/pkg/uixt/touch_test.go
//go:build localtest package uixt import ( "testing" ) func TestDriverExt_ForceTouch(t *testing.T) { driverExt, err := iosDevice.NewDriver(nil) checkErr(t, err) pathSearch := "/Users/hero/Documents/temp/2020-05/opencv/IMG_ft.png" err = driverExt.ForceTouch(pathSearch, 0.5, 3) checkErr(t, err) // err = driv...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/uixt/tap.go
hrp/pkg/uixt/tap.go
package uixt import ( "fmt" ) func (dExt *DriverExt) TapAbsXY(x, y float64, options ...DataOption) error { // tap on absolute coordinate [x, y] return dExt.Driver.TapFloat(x, y, options...) } func (dExt *DriverExt) TapXY(x, y float64, options ...DataOption) error { // tap on [x, y] percent of window size if x >...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/uixt/ext.go
hrp/pkg/uixt/ext.go
package uixt import ( "bytes" "encoding/json" "fmt" "image" "image/jpeg" "image/png" "os" "path/filepath" "strings" "testing" "time" "github.com/pkg/errors" "github.com/test-instructor/yangfan/server/global" "go.uber.org/zap" ) type MobileMethod string const ( AppInstall MobileMethod = "inst...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/uixt/ios_element.go
hrp/pkg/uixt/ios_element.go
package uixt import ( "bytes" "fmt" "math" "strings" "github.com/pkg/errors" "github.com/test-instructor/yangfan/hrp/internal/json" ) // All elements returned by search endpoints have assigned element_id. // Given element_id you can query properties like: // enabled, rect, size, location, text, displayed, acc...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/uixt/android_key.go
hrp/pkg/uixt/android_key.go
package uixt type KeyMeta int const ( KMEmpty KeyMeta = 0 // As a `null` KMCapLocked KeyMeta = 0x100 // SHIFT key locked in CAPS mode. KMAltLocked KeyMeta = 0x200 // ALT key locked. KMSymLocked KeyMeta = 0x400 // SYM key locked. KMSelecting KeyMeta = 0x800 // Text is in selection mode. // KMAltOn ...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/uixt/ios_action.go
hrp/pkg/uixt/ios_action.go
package uixt import ( "strconv" "strings" ) type W3CActions []map[string]interface{} func NewW3CActions(capacity ...int) *W3CActions { if len(capacity) == 0 || capacity[0] <= 0 { capacity = []int{8} } tmp := make(W3CActions, 0, capacity[0]) return &tmp } func (act *W3CActions) SendKeys(text string) *W3CActi...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/uixt/android_action.go
hrp/pkg/uixt/android_action.go
package uixt import "strings" type touchGesture struct { Touch PointF `json:"touch"` Time float64 `json:"time"` } type TouchAction []touchGesture func NewTouchAction(cap ...int) *TouchAction { if len(cap) == 0 || cap[0] <= 0 { cap = []int{8} } tmp := make(TouchAction, 0, cap[0]) return &tmp } func (ta *T...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/uixt/ocr_vedem.go
hrp/pkg/uixt/ocr_vedem.go
package uixt import ( "bytes" "fmt" "image" "io/ioutil" "mime/multipart" "net/http" "strings" "time" "github.com/pkg/errors" "github.com/test-instructor/yangfan/server/global" "go.uber.org/zap" "github.com/test-instructor/yangfan/hrp/internal/builtin" "github.com/test-instructor/yangfan/hrp/internal/cod...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/uixt/android_driver.go
hrp/pkg/uixt/android_driver.go
package uixt import ( "bytes" "encoding/base64" "encoding/json" "fmt" "net" "net/url" "strconv" "strings" "time" "github.com/pkg/errors" "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/hrp/internal/code" "github.com/test-instructor/yangfan/hrp/pkg/gadb" ) var errD...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/uixt/ocr_vedem_test.go
hrp/pkg/uixt/ocr_vedem_test.go
//go:build localtest package uixt import ( "fmt" "os" "testing" ) func checkOCR(buff []byte) error { service, err := newVEDEMOCRService() if err != nil { return err } ocrResults, err := service.getOCRResult(buff) if err != nil { return err } fmt.Println(ocrResults) return nil } func TestOCRWithScreen...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/uixt/opencv.go
hrp/pkg/uixt/opencv.go
//go:build opencv package uixt import ( "bytes" "fmt" "image" "image/color" "io/ioutil" "log" "math" "os" "github.com/pkg/errors" "gocv.io/x/gocv" ) const ( // TmCcoeffNormed maps to TM_CCOEFF_NORMED TmCcoeffNormed TemplateMatchMode = iota // TmSqdiff maps to TM_SQDIFF TmSqdiff // TmSqdiffNormed maps...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/uixt/ios_driver.go
hrp/pkg/uixt/ios_driver.go
package uixt import ( "bytes" "encoding/base64" builtinJSON "encoding/json" "fmt" "net" "net/http" "net/url" "strings" "time" "github.com/pkg/errors" "github.com/test-instructor/yangfan/server/global" "go.uber.org/zap" "github.com/test-instructor/yangfan/hrp/internal/code" "github.com/test-instructor/y...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/uixt/opencv_off.go
hrp/pkg/uixt/opencv_off.go
//go:build !opencv package uixt import ( "image" "github.com/test-instructor/yangfan/server/global" ) func Extend(driver WebDriver, options ...CVOption) (dExt *DriverExt, err error) { return extend(driver) } func (dExt *DriverExt) FindAllImageRect(search string) (rects []image.Rectangle, err error) { global.GV...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/uixt/demo/main_test.go
hrp/pkg/uixt/demo/main_test.go
//go:build localtest package demo import ( "testing" "time" "github.com/test-instructor/yangfan/hrp/pkg/uixt" ) func TestIOSDemo(t *testing.T) { device, err := uixt.NewIOSDevice( uixt.WithWDAPort(8700), uixt.WithWDAMjpegPort(8800), uixt.WithResetHomeOnStartup(false), // not reset home on startup ) if err ...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/device_test.go
hrp/pkg/gidevice/device_test.go
//go:build localtest package gidevice import ( "fmt" "os" "os/signal" "testing" "time" ) var dev Device func setupDevice(t *testing.T) { setupUsbmux(t) devices, err := um.Devices() if err != nil { t.Fatal(err) } if len(devices) == 0 { t.Fatal("No Device") } dev = devices[0] } func Test_device_Read...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/crashreportmover.go
hrp/pkg/gidevice/crashreportmover.go
package gidevice import ( "fmt" "io" "os" "path" "path/filepath" "strings" "howett.net/plist" "github.com/test-instructor/yangfan/hrp/pkg/gidevice/pkg/libimobiledevice" ) var _ CrashReportMover = (*crashReportMover)(nil) func newCrashReportMover(client *libimobiledevice.CrashReportMoverClient) *crashReport...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/perfd.go
hrp/pkg/gidevice/perfd.go
package gidevice import ( "context" "encoding/binary" "encoding/json" "fmt" "net" "strconv" "time" "github.com/test-instructor/yangfan/hrp/pkg/gidevice/pkg/libimobiledevice" ) type PerfOptions struct { // system SysCPU bool `json:"sys_cpu,omitempty" yaml:"sys_cpu,omitempty"` SysMem bool `json:"sys...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/installationproxy.go
hrp/pkg/gidevice/installationproxy.go
package gidevice import ( "fmt" "github.com/test-instructor/yangfan/hrp/pkg/gidevice/pkg/libimobiledevice" ) var _ InstallationProxy = (*installationProxy)(nil) func newInstallationProxy(client *libimobiledevice.InstallationProxyClient) *installationProxy { return &installationProxy{ client: client, } } type...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/screenshot_test.go
hrp/pkg/gidevice/screenshot_test.go
//go:build localtest package gidevice import ( "image" "image/jpeg" "image/png" "os" "testing" ) var screenshotSrv Screenshot func setupScreenshotSrv(t *testing.T) { setupLockdownSrv(t) var err error if lockdownSrv, err = dev.lockdownService(); err != nil { t.Fatal(err) } if screenshotSrv, err = lockd...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/screenshot.go
hrp/pkg/gidevice/screenshot.go
package gidevice import ( "bytes" "errors" "fmt" "github.com/test-instructor/yangfan/hrp/pkg/gidevice/pkg/libimobiledevice" ) var _ Screenshot = (*screenshot)(nil) func newScreenshot(client *libimobiledevice.ScreenshotClient) *screenshot { return &screenshot{ client: client, exchanged: false, } } type...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/springboard.go
hrp/pkg/gidevice/springboard.go
package gidevice import ( "bytes" "fmt" "github.com/test-instructor/yangfan/hrp/pkg/gidevice/pkg/libimobiledevice" ) func newSpringBoard(client *libimobiledevice.SpringBoardClient) *springboard { return &springboard{ client: client, } } type springboard struct { client *libimobiledevice.SpringBoardClient } ...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/device.go
hrp/pkg/gidevice/device.go
package gidevice import ( "bytes" "context" "errors" "fmt" "os" "path" "strings" "time" uuid "github.com/satori/go.uuid" "howett.net/plist" "github.com/test-instructor/yangfan/hrp/pkg/gidevice/pkg/ipa" "github.com/test-instructor/yangfan/hrp/pkg/gidevice/pkg/libimobiledevice" "github.com/test-instructor...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/simulatelocation.go
hrp/pkg/gidevice/simulatelocation.go
package gidevice import "github.com/test-instructor/yangfan/hrp/pkg/gidevice/pkg/libimobiledevice" var _ SimulateLocation = (*simulateLocation)(nil) func newSimulateLocation(client *libimobiledevice.SimulateLocationClient) *simulateLocation { return &simulateLocation{ client: client, } } type simulateLocation s...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/pcapd.go
hrp/pkg/gidevice/pcapd.go
package gidevice import ( "github.com/test-instructor/yangfan/hrp/pkg/gidevice/pkg/libimobiledevice" "github.com/test-instructor/yangfan/server/global" ) type pcapdClient struct { stop chan struct{} c *libimobiledevice.PcapdClient } func newPcapdClient(c *libimobiledevice.PcapdClient) *pcapdClient { return &...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/perfd_test.go
hrp/pkg/gidevice/perfd_test.go
//go:build localtest package gidevice import ( "fmt" "testing" "time" ) func TestPerfSystemMonitor(t *testing.T) { setupLockdownSrv(t) data, err := dev.PerfStart( WithPerfSystemCPU(true), WithPerfSystemMem(true), WithPerfSystemDisk(true), WithPerfSystemNetwork(true), WithPerfOutputInterval(1000), ) ...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/instruments.go
hrp/pkg/gidevice/instruments.go
package gidevice import ( "encoding/json" "fmt" "github.com/test-instructor/yangfan/hrp/pkg/gidevice/pkg/libimobiledevice" ) // instruments services const ( instrumentsServiceDeviceInfo = "com.apple.instruments.server.services.deviceinfo" instrumentsServiceProcessControl = "com.apple.instr...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/usbmux.go
hrp/pkg/gidevice/usbmux.go
package gidevice import ( "context" "github.com/test-instructor/yangfan/hrp/pkg/gidevice/pkg/libimobiledevice" ) var _ Usbmux = (*usbmux)(nil) func NewUsbmux() (Usbmux, error) { umClient, err := libimobiledevice.NewUsbmuxClient() if err != nil { return nil, err } return &usbmux{client: umClient}, nil } fun...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/imagemounter.go
hrp/pkg/gidevice/imagemounter.go
package gidevice import ( "fmt" "os" "github.com/test-instructor/yangfan/hrp/pkg/gidevice/pkg/libimobiledevice" ) var _ ImageMounter = (*imageMounter)(nil) func newImageMounter(client *libimobiledevice.ImageMounterClient) *imageMounter { return &imageMounter{ client: client, } } type imageMounter struct { ...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/springboard_test.go
hrp/pkg/gidevice/springboard_test.go
//go:build localtest package gidevice import ( "fmt" "image" "image/jpeg" "image/png" "os" "testing" ) var springBoardSrv SpringBoard func setupSpringBoardSrv(t *testing.T) { setupLockdownSrv(t) var err error if lockdownSrv, err = dev.lockdownService(); err != nil { t.Fatal(err) } if springBoardSrv, ...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/diagnosticsrelay.go
hrp/pkg/gidevice/diagnosticsrelay.go
package gidevice import "github.com/test-instructor/yangfan/hrp/pkg/gidevice/pkg/libimobiledevice" func newDiagnosticsRelay(client *libimobiledevice.DiagnosticsRelayClient) *diagnostics { return &diagnostics{ client: client, } } type diagnostics struct { client *libimobiledevice.DiagnosticsRelayClient } func (...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/afc_test.go
hrp/pkg/gidevice/afc_test.go
//go:build localtest package gidevice import ( "fmt" "io" "os" "testing" ) var afcSrv Afc func setupAfcSrv(t *testing.T) { setupLockdownSrv(t) var err error if lockdownSrv, err = dev.lockdownService(); err != nil { t.Fatal(err) } if afcSrv, err = lockdownSrv.AfcService(); err != nil { t.Fatal(err) }...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/installationproxy_test.go
hrp/pkg/gidevice/installationproxy_test.go
//go:build localtest package gidevice import ( "testing" ) var installationProxySrv InstallationProxy func setupInstallationProxySrv(t *testing.T) { setupLockdownSrv(t) var err error if lockdownSrv, err = dev.lockdownService(); err != nil { t.Fatal(err) } if installationProxySrv, err = lockdownSrv.Install...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/idevice.go
hrp/pkg/gidevice/idevice.go
package gidevice import ( "bytes" "context" "fmt" "time" "github.com/test-instructor/yangfan/hrp/pkg/gidevice/pkg/libimobiledevice" "github.com/test-instructor/yangfan/hrp/pkg/gidevice/pkg/nskeyedarchiver" ) type Usbmux interface { Devices() ([]Device, error) ReadBUID() (string, error) Listen(chan Device) (...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/instruments_test.go
hrp/pkg/gidevice/instruments_test.go
//go:build localtest package gidevice import ( "testing" ) var ( instrumentsSrv Instruments bundleID = "com.apple.Preferences" ) func setupInstrumentsSrv(t *testing.T) { setupLockdownSrv(t) var err error if lockdownSrv, err = dev.lockdownService(); err != nil { t.Fatal(err) } if instrumentsSrv, er...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/lockdown.go
hrp/pkg/gidevice/lockdown.go
package gidevice import ( "bytes" "crypto/rand" "crypto/rsa" "crypto/sha1" "crypto/x509" "encoding/pem" "errors" "fmt" "math/big" "strconv" "strings" "time" uuid "github.com/satori/go.uuid" "github.com/test-instructor/yangfan/hrp/pkg/gidevice/pkg/libimobiledevice" ) var _ Lockdown = (*lockdown)(nil) ...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/lockdown_test.go
hrp/pkg/gidevice/lockdown_test.go
//go:build localtest package gidevice import ( "fmt" "os" "os/signal" "path" "testing" "time" ) var lockdownSrv Lockdown func setupLockdownSrv(t *testing.T) { setupDevice(t) var err error if lockdownSrv, err = dev.lockdownService(); err != nil { t.Fatal(err) } } func Test_lockdown_QueryType(t *testing...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/usbmux_test.go
hrp/pkg/gidevice/usbmux_test.go
//go:build localtest package gidevice import ( "testing" "time" "github.com/test-instructor/yangfan/hrp/pkg/gidevice/pkg/libimobiledevice" ) var um Usbmux func setupUsbmux(t *testing.T) { var err error um, err = NewUsbmux() if err != nil { t.Fatal(err) } } func Test_usbmux_Devices(t *testing.T) { setupU...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/simulatelocation_test.go
hrp/pkg/gidevice/simulatelocation_test.go
//go:build localtest package gidevice import "testing" var simulateLocationSrv SimulateLocation func setupSimulateLocationSrv(t *testing.T) { setupLockdownSrv(t) var err error if lockdownSrv, err = dev.lockdownService(); err != nil { t.Fatal(err) } if simulateLocationSrv, err = lockdownSrv.SimulateLocation...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/imagemounter_test.go
hrp/pkg/gidevice/imagemounter_test.go
//go:build localtest package gidevice import ( "encoding/base64" "testing" ) var imageMounterSrv ImageMounter func setupImageMounterSrv(t *testing.T) { setupLockdownSrv(t) var err error if lockdownSrv, err = dev.lockdownService(); err != nil { t.Fatal(err) } // Once // dev.Images() if imageMounterSrv, ...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/housearrest.go
hrp/pkg/gidevice/housearrest.go
package gidevice import "github.com/test-instructor/yangfan/hrp/pkg/gidevice/pkg/libimobiledevice" var _ HouseArrest = (*houseArrest)(nil) func newHouseArrest(client *libimobiledevice.HouseArrestClient) *houseArrest { return &houseArrest{ client: client, } } type houseArrest struct { client *libimobiledevice.H...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/syslogrelay.go
hrp/pkg/gidevice/syslogrelay.go
package gidevice import ( "bufio" "fmt" "io" "strings" "github.com/test-instructor/yangfan/hrp/pkg/gidevice/pkg/libimobiledevice" ) var _ SyslogRelay = (*syslogRelay)(nil) func newSyslogRelay(client *libimobiledevice.SyslogRelayClient) *syslogRelay { r := &syslogRelay{ client: client, stop: make(c...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/afc.go
hrp/pkg/gidevice/afc.go
package gidevice import ( "bytes" "encoding/binary" "errors" "fmt" "io" "path" "strconv" "time" "github.com/test-instructor/yangfan/hrp/pkg/gidevice/pkg/libimobiledevice" ) var ErrAfcStatNotExist = errors.New("afc stat: no such file or directory") var _ Afc = (*afc)(nil) func newAfc(client *libimobiledevi...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/xctestmanagerdaemon.go
hrp/pkg/gidevice/xctestmanagerdaemon.go
package gidevice import ( "fmt" "github.com/test-instructor/yangfan/hrp/pkg/gidevice/pkg/libimobiledevice" "github.com/test-instructor/yangfan/hrp/pkg/gidevice/pkg/nskeyedarchiver" ) var _ XCTestManagerDaemon = (*xcTestManagerDaemon)(nil) func newXcTestManagerDaemon(testmanagerd Testmanagerd, channelCode uint32)...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/crashreportmover_test.go
hrp/pkg/gidevice/crashreportmover_test.go
//go:build localtest package gidevice import ( "fmt" "os" "testing" ) var crashReportMoverSrv CrashReportMover func setupCrashReportMoverSrv(t *testing.T) { setupLockdownSrv(t) var err error if lockdownSrv, err = dev.lockdownService(); err != nil { t.Fatal(err) } if crashReportMoverSrv, err = lockdownSr...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/testmanagerd.go
hrp/pkg/gidevice/testmanagerd.go
package gidevice import ( "github.com/test-instructor/yangfan/hrp/pkg/gidevice/pkg/libimobiledevice" ) var _ Testmanagerd = (*testmanagerd)(nil) func newTestmanagerd(client *libimobiledevice.TestmanagerdClient, iOSVersion []int) *testmanagerd { return &testmanagerd{ client: client, iOSVersion: iOSVersion, ...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/housearrest_test.go
hrp/pkg/gidevice/housearrest_test.go
//go:build localtest package gidevice import ( "testing" ) var houseArrestSrv HouseArrest func setupHouseArrestSrv(t *testing.T) { setupLockdownSrv(t) var err error if lockdownSrv, err = dev.lockdownService(); err != nil { t.Fatal(err) } if houseArrestSrv, err = lockdownSrv.HouseArrestService(); err != ni...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/pkg/libimobiledevice/crashreportmover.go
hrp/pkg/gidevice/pkg/libimobiledevice/crashreportmover.go
package libimobiledevice const ( CrashReportMoverServiceName = "com.apple.crashreportmover" CrashReportCopyMobileServiceName = "com.apple.crashreportcopymobile" ) func NewCrashReportMoverClient(innerConn InnerConn) *CrashReportMoverClient { return &CrashReportMoverClient{ newServicePacketClient(innerConn), ...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/pkg/libimobiledevice/packet_afc.go
hrp/pkg/gidevice/pkg/libimobiledevice/packet_afc.go
package libimobiledevice import ( "bytes" "encoding/binary" "errors" "fmt" ) var afcHeader = []byte{0x43, 0x46, 0x41, 0x36, 0x4C, 0x50, 0x41, 0x41} var _ Packet = (*afcPacket)(nil) type afcPacket struct { entireLen uint64 thisLen uint64 packetNum uint64 operation uint64 } func (p *afcPacket) Pack() ([]by...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/pkg/libimobiledevice/installationproxy.go
hrp/pkg/gidevice/pkg/libimobiledevice/installationproxy.go
package libimobiledevice const InstallationProxyServiceName = "com.apple.mobile.installation_proxy" const ( CommandTypeBrowse CommandType = "Browse" CommandTypeLookup CommandType = "Lookup" CommandTypeInstall CommandType = "Install" CommandTypeUninstall CommandType = "Uninstall" ) type ApplicationType st...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/pkg/libimobiledevice/screenshot.go
hrp/pkg/gidevice/pkg/libimobiledevice/screenshot.go
package libimobiledevice import ( "bytes" "encoding/binary" "fmt" ) const ScreenshotServiceName = "com.apple.mobile.screenshotr" func NewScreenshotClient(innerConn InnerConn) *ScreenshotClient { return &ScreenshotClient{ client: newServicePacketClient(innerConn), } } type ScreenshotClient struct { client *s...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/pkg/libimobiledevice/auxbuffer.go
hrp/pkg/gidevice/pkg/libimobiledevice/auxbuffer.go
package libimobiledevice import ( "bytes" "encoding/binary" "errors" "github.com/test-instructor/yangfan/hrp/pkg/gidevice/pkg/nskeyedarchiver" ) type AuxBuffer struct { buf *bytes.Buffer } func NewAuxBuffer() *AuxBuffer { return &AuxBuffer{ buf: new(bytes.Buffer), } } func (m *AuxBuffer) AppendObject(obj ...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/pkg/libimobiledevice/springboard.go
hrp/pkg/gidevice/pkg/libimobiledevice/springboard.go
package libimobiledevice type IconPNGDataResponse struct { PNGData []byte `plist:"pngData"` } type InterfaceOrientationResponse struct { Orientation OrientationState `plist:"interfaceOrientation"` } type OrientationState int64 const ( Unknown OrientationState = iota Portrait PortraitUpsideDown LandscapeRight ...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/hrp/pkg/gidevice/pkg/libimobiledevice/keyedarchiver.go
hrp/pkg/gidevice/pkg/libimobiledevice/keyedarchiver.go
package libimobiledevice import ( "reflect" "strconv" "time" "howett.net/plist" ) const nsNull = "$null" func newKeyedArchiver() *KeyedArchiver { return &KeyedArchiver{ Archiver: "NSKeyedArchiver", Version: 100000, } } type KeyedArchiver struct { Archiver string `plist:"$archiver"` Objects []i...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false