Skip to content

Commit

Permalink
add usings
Browse files Browse the repository at this point in the history
  • Loading branch information
yowl committed Oct 24, 2023
1 parent bc61450 commit 4892c23
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions tests/runtime/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
use anyhow::Result;
use heck::ToUpperCamelCase;

use std::borrow::Cow;
use std::fs;
use std::io::Write;
Expand All @@ -9,7 +11,7 @@ use wasmtime::component::{Component, Instance, Linker};
use wasmtime::{Config, Engine, Store};
use wasmtime_wasi::preview2::{Table, WasiCtx, WasiCtxBuilder, WasiView};
use wit_component::{ComponentEncoder, StringEncoding};
use wit_parser::Resolve;
use wit_parser::{Resolve, WorldItem};

mod flavorful;
mod lists;
Expand Down Expand Up @@ -490,7 +492,7 @@ fn tests(name: &str, dir_name: &str) -> Result<Vec<PathBuf>> {
.unwrap();
}

let snake = world_name.replace("-", "_");
let snake = &world_name.replace("-", "_");

let assembly_name = format!(
"csharp-{}",
Expand Down Expand Up @@ -519,8 +521,8 @@ fn tests(name: &str, dir_name: &str) -> Result<Vec<PathBuf>> {
<!--To inherit the global NuGet package sources remove the <clear/> line below -->
<clear />
<add key="nuget" value="https://api.nuget.org/v3/index.json" />
<!--<add key="dotnet-experimental" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-experimental/nuget/v3/index.json" />-->
<add key="dotnet-experimental" value="C:\github\runtimelab\artifacts\packages\Debug\Shipping" />
<add key="dotnet-experimental" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-experimental/nuget/v3/index.json" />
<!--<add key="dotnet-experimental" value="C:\github\runtimelab\artifacts\packages\Debug\Shipping" />-->
</packageSources>
</configuration>"#,
)?;
Expand All @@ -531,12 +533,6 @@ fn tests(name: &str, dir_name: &str) -> Result<Vec<PathBuf>> {
r#"<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
<Application>
<Assembly Name="{assembly_name}">
<!--<Type Name="wit_the_world.Imports">
--><!--<Method Name="float32Param" />--><!--
<Method Name="float64Param" />
<Method Name="float32Result" />
<Method Name="float64Result" />
</Type>-->
</Assembly>
</Application>
</Directives>"#
Expand Down

0 comments on commit 4892c23

Please sign in to comment.