@@ -167,7 +167,7 @@ func TestLaunchAppShellResolveActivity(t *testing.T) {
167167 shell := & shellMock {
168168 responses : map [string ]string {
169169 "getprop ro.build.version.sdk" : "30" ,
170- "resolve-activity" : "com.example.app/.MainActivity" ,
170+ "resolve-activity" : "com.example.app/.MainActivity" ,
171171 },
172172 fallback : "Success" ,
173173 }
@@ -220,7 +220,7 @@ func TestLaunchAppShellAmStartForOlderAPI(t *testing.T) {
220220 shell := & shellMock {
221221 responses : map [string ]string {
222222 "getprop ro.build.version.sdk" : "25" ,
223- "resolve-activity" : "com.example.app/.MainActivity" ,
223+ "resolve-activity" : "com.example.app/.MainActivity" ,
224224 },
225225 fallback : "Success" ,
226226 }
@@ -284,7 +284,7 @@ func TestLaunchAppMonkeyFallbackResolveFailed(t *testing.T) {
284284 shell := & shellMock {
285285 responses : map [string ]string {
286286 "getprop ro.build.version.sdk" : "30" ,
287- "resolve-activity" : "No activity found" ,
287+ "resolve-activity" : "No activity found" ,
288288 },
289289 errors : map [string ]error {
290290 "dumpsys package" : fmt .Errorf ("dumpsys failed" ),
@@ -316,7 +316,7 @@ func TestLaunchAppMonkeyAborted(t *testing.T) {
316316 shell := & shellMock {
317317 responses : map [string ]string {
318318 "getprop ro.build.version.sdk" : "30" ,
319- "resolve-activity" : "No activity found" ,
319+ "resolve-activity" : "No activity found" ,
320320 "monkey" : "monkey aborted" ,
321321 },
322322 errors : map [string ]error {
@@ -389,7 +389,7 @@ func TestLaunchAppDumpsysFallbackWithArgs(t *testing.T) {
389389 shell := & shellMock {
390390 responses : map [string ]string {
391391 "getprop ro.build.version.sdk" : "30" ,
392- "resolve-activity" : "No activity found" ,
392+ "resolve-activity" : "No activity found" ,
393393 "dumpsys package" : "com.example.app/.MainActivity filter abc123\n " +
394394 " Action: \" android.intent.action.MAIN\" \n " +
395395 " Category: \" android.intent.category.LAUNCHER\" \n " ,
@@ -425,7 +425,7 @@ func TestLaunchAppDotPrefixRetry(t *testing.T) {
425425 shell := & shellMock {
426426 responses : map [string ]string {
427427 "getprop ro.build.version.sdk" : "30" ,
428- "resolve-activity" : "com.example.app/MainActivity" ,
428+ "resolve-activity" : "com.example.app/MainActivity" ,
429429 },
430430 fallback : "Success" ,
431431 }
@@ -3915,11 +3915,11 @@ func TestResolveLauncherActivity(t *testing.T) {
39153915
39163916func TestLaunchWithMonkey (t * testing.T ) {
39173917 tests := []struct {
3918- name string
3919- appID string
3920- output string
3921- err error
3922- wantOK bool
3918+ name string
3919+ appID string
3920+ output string
3921+ err error
3922+ wantOK bool
39233923 }{
39243924 {
39253925 name : "successful launch" ,
@@ -3974,7 +3974,7 @@ func TestLaunchAppViaShellWithArgTypes(t *testing.T) {
39743974 shell := & shellMock {
39753975 responses : map [string ]string {
39763976 "getprop ro.build.version.sdk" : "30" ,
3977- "resolve-activity" : "com.example.app/.MainActivity" ,
3977+ "resolve-activity" : "com.example.app/.MainActivity" ,
39783978 },
39793979 fallback : "Success" ,
39803980 }
@@ -3983,7 +3983,7 @@ func TestLaunchAppViaShellWithArgTypes(t *testing.T) {
39833983 // Test with multiple argument types
39843984 args := map [string ]interface {}{
39853985 "stringKey" : "stringValue" ,
3986- "intKey" : float64 (42 ), // JSON unmarshals numbers as float64
3986+ "intKey" : float64 (42 ), // JSON unmarshals numbers as float64
39873987 "floatKey" : float64 (3.14 ),
39883988 "boolKey" : true ,
39893989 }
@@ -4026,8 +4026,8 @@ func TestLaunchAppViaShellAmStartError(t *testing.T) {
40264026 shell := & shellMock {
40274027 responses : map [string ]string {
40284028 "getprop ro.build.version.sdk" : "30" ,
4029- "resolve-activity" : "com.example.app/.MainActivity" ,
4030- "am start-activity" : "Error: Activity not started" ,
4029+ "resolve-activity" : "com.example.app/.MainActivity" ,
4030+ "am start-activity" : "Error: Activity not started" ,
40314031 "monkey" : "Events injected: 1" ,
40324032 },
40334033 fallback : "" ,
@@ -4046,8 +4046,8 @@ func TestLaunchAppViaShellAmStartErrorWithArgs(t *testing.T) {
40464046 shell := & shellMock {
40474047 responses : map [string ]string {
40484048 "getprop ro.build.version.sdk" : "30" ,
4049- "resolve-activity" : "com.example.app/.MainActivity" ,
4050- "am start-activity" : "Error: Activity not started" ,
4049+ "resolve-activity" : "com.example.app/.MainActivity" ,
4050+ "am start-activity" : "Error: Activity not started" ,
40514051 },
40524052 fallback : "" ,
40534053 }
0 commit comments