Search in sources :

Example 6 with GoBuildTargetSettings

use of com.goide.project.GoBuildTargetSettings in project go-lang-idea-plugin by go-lang-plugin-org.

the class GoPerformanceTest method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    GoBuildTargetSettings buildTargetSettings = new GoBuildTargetSettings();
    buildTargetSettings.os = "darwin";
    buildTargetSettings.arch = "amd64";
    buildTargetSettings.goVersion = "1.5.1";
    GoModuleSettings.getInstance(myFixture.getModule()).setBuildTargetSettings(buildTargetSettings);
}
Also used : GoBuildTargetSettings(com.goide.project.GoBuildTargetSettings)

Example 7 with GoBuildTargetSettings

use of com.goide.project.GoBuildTargetSettings in project go-lang-idea-plugin by go-lang-plugin-org.

the class GoLegacyResolveCallsTest method testCallToDifferentBuildTargetFiles.

public void testCallToDifferentBuildTargetFiles() {
    GoBuildTargetSettings buildTargetSettings = new GoBuildTargetSettings();
    buildTargetSettings.customFlags = new String[] { "enabled" };
    GoModuleSettings.getInstance(myFixture.getModule()).setBuildTargetSettings(buildTargetSettings);
    doDirTest();
}
Also used : GoBuildTargetSettings(com.goide.project.GoBuildTargetSettings)

Example 8 with GoBuildTargetSettings

use of com.goide.project.GoBuildTargetSettings in project go-lang-idea-plugin by go-lang-plugin-org.

the class GoCodeInsightFixtureTestCase method tearDown.

@Override
protected void tearDown() throws Exception {
    try {
        GoApplicationLibrariesService.getInstance().setLibraryRootUrls();
        GoModuleSettings.getInstance(myFixture.getModule()).setBuildTargetSettings(new GoBuildTargetSettings());
        GoModuleSettings.getInstance(myFixture.getModule()).setVendoringEnabled(ThreeState.UNSURE);
    } finally {
        //noinspection ThrowFromFinallyBlock
        super.tearDown();
    }
}
Also used : GoBuildTargetSettings(com.goide.project.GoBuildTargetSettings)

Aggregations

GoBuildTargetSettings (com.goide.project.GoBuildTargetSettings)8 NotNull (org.jetbrains.annotations.NotNull)3 Module (com.intellij.openapi.module.Module)1 CachedValue (com.intellij.psi.util.CachedValue)1 ThreeState (com.intellij.util.ThreeState)1 File (java.io.File)1 Element (org.jdom.Element)1