mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
test(driverpb): drop proto getter round-trip tautology
This commit is contained in:
1 parent
93f1e94098
commit
19950dffe1
1 file changed
-22
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user