未验证 提交 af74af95 编写于 作者: P Phodal Huang

bug: add arduino creator

上级 7b6f9f82
package cc.arduino.packages.contributions;
import org.junit.Test;
import processing.app.Platform;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
public class HostDependentDownloadableContributionTest {
@Test
public void macOsXPositiveTest() {
HostDependentDownloadableContributionStub contribution = new HostDependentDownloadableContributionStub() {
@Override
public String getHost() {
return "x86_64-apple-darwin";
}
};
Platform platform = new Platform() {
@Override
public String getOsName() {
return "Mac OS X";
}
@Override
public String getOsArch() {
return "x86_64";
}
};
assertTrue(contribution.isCompatible(platform));
}
}
\ No newline at end of file
package tbs
import (
"fmt"
. "github.com/onsi/gomega"
"github.com/phodal/coca/core/adapter"
"github.com/phodal/coca/core/adapter/call"
......@@ -78,6 +79,17 @@ func TestTbsApp_UnknownTest(t *testing.T) {
g.Expect(result[1].Type).To(Equal("UnknownTest"))
}
func TestTbsApp_CreatorNotUnknownTest(t *testing.T) {
g := NewGomegaWithT(t)
codePath := "../../../_fixtures/tbs/code/CreatorNotUnknownTest.java"
codePath = filepath.FromSlash(codePath)
result := buildTbsResult(codePath)
// todo: fix bug
g.Expect(len(result)).To(Equal(3))
}
func buildTbsResult(codePath string) []TestBadSmell {
files := support.GetJavaTestFiles(codePath)
var identifiers []models.JIdentifier
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册