MCPcopy
hub / github.com/httprunner/httprunner / TestDriver_Rotation

Function TestDriver_Rotation

hrp/pkg/uixt/android_test.go:93–105  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

91}
92
93func TestDriver_Rotation(t *testing.T) {
94 driver, err := NewUIADriver(nil, uiaServerURL)
95 if err != nil {
96 t.Fatal(err)
97 }
98
99 rotation, err := driver.Rotation()
100 if err != nil {
101 t.Fatal(err)
102 }
103
104 t.Logf("x = %d\ty = %d\tz = %d", rotation.X, rotation.Y, rotation.Z)
105}
106
107func TestDriver_DeviceSize(t *testing.T) {
108 driver, err := NewUIADriver(nil, uiaServerURL)

Callers

nothing calls this directly

Calls 2

NewUIADriverFunction · 0.85
RotationMethod · 0.45

Tested by

no test coverage detected