Commit 867928b
authored
test(internal/sidekick): skip test instead of failing when cargo is not installed (#2102)
`go test ./...` should always pass on a fresh clone of
github.com/librarian/googleapis.
At the moment, TestRustProstFromProtobuf fails because it requires
cargo.
```
--- FAIL: TestRustProstFromProtobuf (0.09s)
sidekick_rust_prost_test.go:48: got an error trying to run `cargo
--version`, the instructions on
https://www.rust-lang.org/learn/get-started may solve this problem:
cargo --version: exec: "cargo": executable file not found in $PATH
```
Skip this test when cargo is not installed.1 parent 8eb879e commit 867928b
File tree
2 files changed
+8
-0
lines changed- internal/sidekick
2 files changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
0 commit comments