Skip to content

Commit

Permalink
Add last display name and remove unecessary public visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrolamarao committed Feb 20, 2024
1 parent 1d0056a commit 080b349
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
import static org.gradle.testkit.runner.TaskOutcome.SUCCESS;

@DisplayName("Gradle Metal dependency resolution")
public class MetalDependencyTest extends MetalTestBase
class MetalDependencyTest extends MetalTestBase
{
@Test
public void subproject () throws IOException
void subproject () throws IOException
{
// base library

Expand Down Expand Up @@ -201,7 +201,7 @@ int main (int argc, char * argv [])
}

@Test
public void composite () throws IOException
void composite () throws IOException
{
// base library

Expand Down Expand Up @@ -400,7 +400,7 @@ int main (int argc, char * argv [])
}

@Test
public void libraryTest () throws IOException
void libraryTest () throws IOException
{
final var fooDir = projectDir.resolve("foo");
Files.createDirectories(fooDir);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
import static org.gradle.testkit.runner.TaskOutcome.UP_TO_DATE;

@DisplayName("Gradle Metal extension")
public class MetalExtensionTest extends MetalTestBase
class MetalExtensionTest extends MetalTestBase
{
@Test
public void archiveFileName () throws IOException
void archiveFileName () throws IOException
{
Files.writeString(projectDir.resolve("build.gradle.kts"),
"""
Expand All @@ -43,7 +43,7 @@ public void archiveFileName () throws IOException
}

@Test
public void locateTool () throws IOException
void locateTool () throws IOException
{
Files.writeString(projectDir.resolve("build.gradle.kts"),
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
import static org.gradle.testkit.runner.TaskOutcome.SUCCESS;

@DisplayName("Gradle Metal C++ module interface support")
public class MetalIxxPrecompileTest extends MetalTestBase
class MetalIxxPrecompileTest extends MetalTestBase
{
@Test
public void compile () throws IOException
void compile () throws IOException
{
Files.createDirectories(projectDir.resolve("src"));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
import static org.gradle.testkit.runner.TaskOutcome.*;

@DisplayName("Gradle Metal library project")
public class MetalLibraryTest extends MetalTestBase
class MetalLibraryTest extends MetalTestBase
{
@DisplayName("compile with Assembler sources")
@Test
public void compileAsm () throws IOException
void compileAsm () throws IOException
{
Files.createDirectories(projectDir.resolve("src/main/asm"));
Files.writeString(projectDir.resolve("src/main/asm/foo.s"),
Expand Down Expand Up @@ -117,7 +117,7 @@ public void compileAsm () throws IOException

@DisplayName("compile with C sources")
@Test
public void compileC () throws IOException
void compileC () throws IOException
{
Files.createDirectories(projectDir.resolve("src/main/cpp"));
Files.writeString(projectDir.resolve("src/main/cpp/foo.h"),
Expand Down Expand Up @@ -226,7 +226,7 @@ int main (int argc, char * argv[])

@DisplayName("compile with C++ sources")
@Test
public void compileCxx () throws IOException
void compileCxx () throws IOException
{
Files.createDirectories(projectDir.resolve("src/main/cpp"));
Files.writeString(projectDir.resolve("src/main/cpp/foo.h"),
Expand Down Expand Up @@ -367,7 +367,7 @@ int main (int argc, char * argv[])

@DisplayName("compile with no sources")
@Test
public void empty () throws IOException
void empty () throws IOException
{
Files.writeString(projectDir.resolve("build.gradle.kts"),
"""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
package br.dev.pedrolamarao.gradle.metal;

import org.gradle.testkit.runner.GradleRunner;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

import java.io.IOException;
import java.nio.file.Files;

/**
* Gradle Metal target support.
*/
public class MetalTargetTest extends MetalTestBase
@DisplayName("Gradle Metal target support")
class MetalTargetTest extends MetalTestBase
{
@Test
public void targets () throws IOException
void targets () throws IOException
{
Files.createDirectories(projectDir.resolve("src/main/cpp"));
Files.writeString(projectDir.resolve("src/main/cpp/main.h"),
Expand Down

0 comments on commit 080b349

Please sign in to comment.