@@ -16,6 +16,25 @@ func TestRust(t *testing.T) {
16
16
{Case : "Rust 1.64.0" , ExpectedString : "1.64.0" , Version : "rustc 1.64.0" },
17
17
{Case : "Rust 1.53.0" , ExpectedString : "1.53.0" , Version : "rustc 1.53.0 (4369396ce 2021-04-27)" },
18
18
{Case : "Rust 1.66.0" , ExpectedString : "1.66.0-nightly" , Version : "rustc 1.66.0-nightly (01af5040f 2022-10-04)" },
19
+ {
20
+ Case : "Toolchain not installed" ,
21
+ ExpectedString : "1.81.0" ,
22
+ Version : ` info: syncing channel updates for '1.81.0-x86_64-pc-windows-msvc'
23
+ info: latest update on 2024-09-05, rust version 1.81.0 (eeb90cda1 2024-09-04)
24
+ info: downloading component 'cargo'
25
+ info: downloading component 'clippy'
26
+ info: downloading component 'rust-analyzer'
27
+ info: downloading component 'rust-src'
28
+ info: downloading component 'rust-std'
29
+ info: downloading component 'rustc'
30
+ info: downloading component 'rustfmt'
31
+ info: installing component 'cargo'
32
+ info: installing component 'clippy'
33
+ info: installing component 'rust-analyzer'
34
+ info: installing component 'rust-src'
35
+ info: installing component 'rust-std'
36
+ info: installing component 'rustc'` ,
37
+ },
19
38
}
20
39
for _ , tc := range cases {
21
40
params := & mockedLanguageParams {
0 commit comments