Refactoring of tests, separating the tests for linters

Reviewed By: sblackshear

Differential Revision: D3569981

fbshipit-source-id: 198647b
master
Dulma Churchill 9 years ago committed by Facebook Github Bot 9
parent 41d93dd889
commit 8b0b485921

@ -21,5 +21,7 @@
checkers = //infer/tests/endtoend/java/checkers:checkers
tracing = //infer/tests/endtoend/java/tracing:tracing
linters = //infer/tests/endtoend:linters
[project]
ignore = .git, .ml, .mli

@ -1,43 +1,24 @@
java_test(
name='integration_tests',
name='c_tests',
deps=[
'//dependencies/java:java_libraries',
'//infer/tests/endtoend:objc_endtoend_tests',
'//infer/tests/frontend:objc_frontend_tests',
'//infer/tests/endtoend/c:infer',
'//infer/tests/endtoend:c_endtoend_tests',
'//infer/tests/frontend:c_frontend_tests',
'//infer/tests/endtoend:cpp_endtoend_tests',
'//infer/tests/frontend:cpp_frontend_tests',
'//infer/tests/endtoend:objcpp_endtoend_tests',
'//infer/tests/frontend:objcpp_frontend_tests',
'//infer/tests/endtoend:java_endtoend_tests',
],
source='7',
target='7',
)
java_test(
name='objc_tests',
deps=[
'//infer/tests/endtoend:objc_endtoend_tests',
'//infer/tests/frontend:objc_frontend_tests',
],
)
java_test(
name='c_tests',
name='cpp_tests',
deps=[
'//infer/tests/endtoend/c:infer',
'//infer/tests/frontend:c_frontend_tests',
'//infer/tests/endtoend:cpp_endtoend_tests',
'//infer/tests/frontend:cpp_frontend_tests',
],
)
java_test(
name='cpp_tests',
name='objc_tests',
deps=[
'//infer/tests/endtoend:cpp_endtoend_tests',
'//infer/tests/frontend:cpp_frontend_tests',
'//infer/tests/endtoend:objc_endtoend_tests',
'//infer/tests/frontend:objc_frontend_tests',
],
)
@ -58,8 +39,3 @@ java_test(
'//infer/tests:objcpp_tests',
],
)
project_config(
src_target=':integration_tests',
src_roots=[ 'src' ],
)

@ -13,78 +13,50 @@ tests_dependencies = [
'//infer/tests/codetoanalyze/java/tracing:tracing',
]
integration_tests = [
'//infer/tests:integration_tests',
'//infer/tests:objc_tests',
'//infer/tests:c_tests',
'//infer/tests:cpp_tests',
'//infer/tests:objcpp_tests',
]
# ############### ObjC tests endtoend ########################
objc_test_sources = glob(['objc/**/*.java'])
objc_endtoend_test_deps = []
for test_source in objc_test_sources:
target_name = test_source.replace("/", "_")[:-len(".java")]
objc_endtoend_test_deps.append(target_name)
# ############### C endtoend tests ########################
java_test(
name=target_name,
srcs=[test_source],
deps=tests_dependencies,
visibility=integration_tests,
source='7',
target='7',
name='c_endtoend_tests',
deps=[
'//infer/tests/endtoend/c/infer:infer',
],
visibility=[
'PUBLIC',
],
)
# ############### ObjC endtoend tests ########################
java_test(
name='objc_endtoend_tests',
deps=[':' + x for x in objc_endtoend_test_deps],
visibility=integration_tests,
deps=[
'//infer/tests/endtoend/objc/infer:infer',
'//infer/tests/endtoend/objc/linters:linters',
],
visibility=[
'PUBLIC',
],
)
# ############### Cpp endtoend tests ########################
objc_test_sources = glob(['cpp/**/*.java'])
objc_endtoend_test_deps = []
for test_source in objc_test_sources:
target_name = test_source.replace("/", "_")[:-len(".java")]
objc_endtoend_test_deps.append(target_name)
java_test(
name=target_name,
srcs=[test_source],
deps=tests_dependencies,
visibility=integration_tests,
source='7',
target='7',
)
java_test(
name='cpp_endtoend_tests',
deps=[':' + x for x in objc_endtoend_test_deps],
visibility=integration_tests,
deps=[
'//infer/tests/endtoend/cpp/infer:infer',
],
visibility=[
'PUBLIC',
],
)
# ############### ObjCpp endtoend tests ########################
objc_test_sources = glob(['objcpp/**/*.java'])
objc_endtoend_test_deps = []
for test_source in objc_test_sources:
target_name = test_source.replace("/", "_")[:-len(".java")]
objc_endtoend_test_deps.append(target_name)
java_test(
name=target_name,
srcs=[test_source],
deps=tests_dependencies,
visibility=integration_tests,
source='7',
target='7',
)
java_test(
name='objcpp_endtoend_tests',
deps=[':' + x for x in objc_endtoend_test_deps],
visibility=integration_tests,
deps=[
'//infer/tests/endtoend/objcpp/infer:infer',
'//infer/tests/endtoend/objcpp/linters:linters',
],
visibility=[
'PUBLIC',
],
)
# ############### Java endtoend tests ########################
@ -98,5 +70,17 @@ java_test(
'//infer/tests/endtoend/java/tracing:tracing',
'//infer/tests/endtoend/java/comparison:comparison',
],
visibility=integration_tests,
visibility=[
'PUBLIC',
],
)
# ############### Linters tests ########################
java_test(
name='linters',
deps=[
'//infer/tests/endtoend/objc/linters:linters',
'//infer/tests/endtoend/objcpp/linters:linters',
],
)

@ -7,10 +7,9 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.c;
package endtoend.c.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsLineNumbers.containsLines;
import static utils.matchers.ResultContainsExactly.containsExactly;
import org.junit.BeforeClass;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.c;
package endtoend.c.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.c;
package endtoend.c.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.c;
package endtoend.c.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;
@ -15,15 +15,12 @@ import static utils.matchers.ResultContainsExactly.containsExactly;
import com.google.common.collect.ImmutableList;
import org.junit.BeforeClass;
import org.junit.ClassRule;
import org.junit.Test;
import java.io.IOException;
import utils.DebuggableTemporaryFolder;
import utils.InferException;
import utils.InferResults;
import utils.InferRunner;
public class AssertKeepBranchTest {

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.c;
package endtoend.c.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsNoErrorInMethod.doesNotContain;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.c;
package endtoend.c.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,23 +7,18 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.c;
package endtoend.c.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;
import com.google.common.collect.ImmutableList;
import org.junit.BeforeClass;
import org.junit.ClassRule;
import org.junit.Test;
import java.io.IOException;
import utils.DebuggableTemporaryFolder;
import utils.InferException;
import utils.InferResults;
import utils.InferRunner;
public class CompoundLiteralExprTest {

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.c;
package endtoend.c.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,11 +7,10 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.c;
package endtoend.c.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;
import static utils.matchers.ResultContainsLineNumbers.containsLines;
import static utils.matchers.ResultContainsErrorInMethod.contains;
import org.junit.BeforeClass;
import org.junit.Test;
@ -20,7 +19,6 @@ import java.io.IOException;
import utils.InferException;
import utils.InferResults;
import utils.InferRunner;
public class DanglingDereferenceTest {

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.c;
package endtoend.c.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.c;
package endtoend.c.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,23 +7,18 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.c;
package endtoend.c.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;
import com.google.common.collect.ImmutableList;
import org.junit.BeforeClass;
import org.junit.ClassRule;
import org.junit.Test;
import java.io.IOException;
import utils.DebuggableTemporaryFolder;
import utils.InferException;
import utils.InferResults;
import utils.InferRunner;
public class InitListExprTest {

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.c;
package endtoend.c.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.c;
package endtoend.c.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.c;
package endtoend.c.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.c;
package endtoend.c.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.c;
package endtoend.c.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsLineNumbers.containsLines;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.c;
package endtoend.c.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,11 +7,10 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.c;
package endtoend.c.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;
import static utils.matchers.ResultContainsLineNumbers.containsLines;
import org.junit.BeforeClass;
import org.junit.Test;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.c;
package endtoend.c.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.c;
package endtoend.c.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.c;
package endtoend.c.infer;
import com.google.common.collect.ImmutableList;

@ -0,0 +1,35 @@
tests_dependencies = [
'//infer/lib/java/android:android',
'//dependencies/java/guava:guava',
'//dependencies/java/junit:hamcrest',
'//dependencies/java/jackson:jackson',
'//dependencies/java/jsr-305:jsr-305',
'//dependencies/java/junit:junit',
'//dependencies/java/opencsv:opencsv',
'//infer/tests/utils:utils',
]
cpp_infer_test_sources = glob(['*.java'])
cpp_infer_test_deps = []
for test_source in cpp_infer_test_sources:
target_name = test_source.replace("/", "_")[:-len(".java")]
cpp_infer_test_deps.append(target_name)
java_test(
name=target_name,
srcs=[test_source],
deps=tests_dependencies,
visibility=[
'PUBLIC',
],
source='7',
target='7',
)
java_test(
name='infer',
deps=[':' + x for x in cpp_infer_test_deps],
visibility=[
'PUBLIC',
],
)

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsErrorInMethod.contains;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsErrorInMethod.contains;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsErrorInMethod.contains;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsNoErrorInMethod.doesNotContain;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsErrorInMethod.contains;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsErrorInMethod.contains;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsErrorInMethod.contains;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsErrorInMethod.contains;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsErrorInMethod.contains;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsErrorInMethod.contains;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.cpp;
package endtoend.cpp.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.objc;
package endtoend.objc.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsNoErrorInMethod.doesNotContain;

@ -0,0 +1,35 @@
tests_dependencies = [
'//infer/lib/java/android:android',
'//dependencies/java/guava:guava',
'//dependencies/java/junit:hamcrest',
'//dependencies/java/jackson:jackson',
'//dependencies/java/jsr-305:jsr-305',
'//dependencies/java/junit:junit',
'//dependencies/java/opencsv:opencsv',
'//infer/tests/utils:utils',
]
objc_infer_test_sources = glob(['*.java'])
objc_infer_test_deps = []
for test_source in objc_infer_test_sources:
target_name = test_source.replace("/", "_")[:-len(".java")]
objc_infer_test_deps.append(target_name)
java_test(
name=target_name,
srcs=[test_source],
deps=tests_dependencies,
visibility=[
'PUBLIC',
],
source='7',
target='7',
)
java_test(
name='infer',
deps=[':' + x for x in objc_infer_test_deps],
visibility=[
'PUBLIC',
],
)

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.objc;
package endtoend.objc.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsErrorInMethod.contains;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.objc;
package endtoend.objc.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsErrorInMethod.contains;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.objc;
package endtoend.objc.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsErrorInMethod.contains;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.objc;
package endtoend.objc.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.objc;
package endtoend.objc.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsErrorInMethod.contains;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.objc;
package endtoend.objc.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.objc;
package endtoend.objc.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsErrorInMethod.contains;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.objc;
package endtoend.objc.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsErrorInMethod.contains;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.objc;
package endtoend.objc.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.objc;
package endtoend.objc.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsNoErrorInMethod.doesNotContain;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.objc;
package endtoend.objc.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;

@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package endtoend.objc;
package endtoend.objc.infer;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsErrorInMethod.contains;

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save