MCPcopy Create free account
hub / github.com/IntegralPilot/rustc_codegen_jvm / main

Method main

tests/integration/jvm_hello/Main.java:2–10  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

1import org.rustlang.runtime.Utf8View;
2
3public class Main {
4 public static void main(String[] args) {
5 jvm_hello.Ciallo data = new jvm_hello.Ciallo(233, Utf8View.fromJavaString("wooooooooo"));
6 String result = Utf8View.toJavaString(jvm_hello.jvm_hello.ciallo(data));
7 if (result.equals("Hello from Rust!")) {
8 System.out.println("Test passed: " + result);
9 } else {
10 throw new AssertionError("Test failed: expected 'Hello from Rust!' but got '" + result + "'");
11 }
12 }
13}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected