From 19950dffe10600a53404dc10b860f7cc079a28e6 Mon Sep 17 00:00:00 2001 From: PJ Date: Mon, 1 Jun 2026 21:56:08 +0530 Subject: [PATCH] test(driverpb): drop proto getter round-trip tautology --- proto/driverpb/driver_test.go | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/proto/driverpb/driver_test.go b/proto/driverpb/driver_test.go index 294e61f..860500b 100644 --- a/proto/driverpb/driver_test.go +++ b/proto/driverpb/driver_test.go @@ -44,25 +44,3 @@ func TestDriverServiceDescriptor(t *testing.T) { } } } - -func TestMessageFields(t *testing.T) { - lr := &LaunchRequest{BundleId: "com.example", ClearState: true} - if lr.GetBundleId() != "com.example" || !lr.GetClearState() { - t.Fatalf("LaunchRequest field round-trip failed: %+v", lr) - } - - tap := &Point{X: 10, Y: 20} - if tap.GetX() != 10 || tap.GetY() != 20 { - t.Fatalf("Point field round-trip failed: %+v", tap) - } - - img := &Image{Png: []byte{1, 2, 3}, Width: 100, Height: 200} - if len(img.GetPng()) != 3 || img.GetWidth() != 100 || img.GetHeight() != 200 { - t.Fatalf("Image field round-trip failed: %+v", img) - } - - hs := &HealthStatus{Ready: true, Version: "0.0.1", Platform: "android"} - if !hs.GetReady() || hs.GetVersion() != "0.0.1" || hs.GetPlatform() != "android" { - t.Fatalf("HealthStatus field round-trip failed: %+v", hs) - } -}