Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/simian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
distribution: 'temurin'
java-version: 17
- run: wget --quiet http://public.yegor256.com/simian.jar -O /tmp/simian.jar
- run: java -jar /tmp/simian.jar -threshold=15 "-excludes=**/EOsocketTest.java" "-excludes=**/gen" "-excludes=**/it" "**/*.java" "-excludes=**/ContainsFiles.java"
- run: java -jar /tmp/simian.jar -threshold=15 "-excludes=**/EOsocketTest.java" "-excludes=**/gen" "-excludes=**/it" "**/*.java"

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import java.nio.file.Path;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.hamcrest.io.FileMatchers;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;

Expand All @@ -38,7 +39,7 @@ void assemblesTogether(@Mktmp final Path temp) throws IOException {
f.files()
.file("src/main/eo/foo/x/main.eo")
.write(MjAssembleIT.program().getBytes(StandardCharsets.UTF_8));
MjAssembleIT.appendItself(f);
MjAssembleIT.registerAssemble(f);
f.exec("package");
MatcherAssert.assertThat(
String.format(
Expand Down Expand Up @@ -79,12 +80,12 @@ void assemblesNotFailWithFailOnError(@Mktmp final Path temp) throws IOException
f.files()
.file("src/main/eo/one/main.eo")
.write(prog.getBytes(StandardCharsets.UTF_8));
MjAssembleIT.appendItself(f);
MjAssembleIT.registerAssemble(f);
f.exec("test");
MatcherAssert.assertThat(
"Even if the eo program invalid we still have to parse it, but we didn't",
temp.resolve(String.format("target/eo/%s", "1-parse")).toAbsolutePath(),
new ContainsFiles("**/main.xmir")
temp.resolve("target/eo/1-parse/one/main.xmir").toAbsolutePath().toFile(),
FileMatchers.anExistingFile()
);
}
);
Expand All @@ -103,7 +104,7 @@ private static String program() {
);
}

private static Execution appendItself(final Farea farea) throws IOException {
private static Execution registerAssemble(final Farea farea) throws IOException {
return new AppendedPlugin(farea).value()
.goals("register", "assemble");
}
Expand Down
Loading