|
| 1 | +load("@io_bazel_rules_kotlin//kotlin:kotlin.bzl", "kt_jvm_test") |
| 2 | + |
| 3 | +licenses(["notice"]) |
| 4 | + |
| 5 | +package(default_visibility = ["//compiler/src/test:__subpackages__"]) |
| 6 | + |
| 7 | +kt_jvm_test( |
| 8 | + name = "ClassSimpleNameTest", |
| 9 | + srcs = ["ClassSimpleNameTest.kt"], |
| 10 | + test_class = "io.grpc.kotlin.generator.protoc.ClassSimpleNameTest", |
| 11 | + deps = [ |
| 12 | + "//compiler/src/main/java/io/grpc/kotlin/generator/protoc", |
| 13 | + "//compiler/src/main/java/io/grpc/kotlin/generator/protoc/testing", |
| 14 | + "@maven//:com_google_truth_truth", |
| 15 | + ], |
| 16 | +) |
| 17 | + |
| 18 | +kt_jvm_test( |
| 19 | + name = "ConstantNameTest", |
| 20 | + srcs = ["ConstantNameTest.kt"], |
| 21 | + test_class = "io.grpc.kotlin.generator.protoc.ConstantNameTest", |
| 22 | + deps = [ |
| 23 | + "//compiler/src/main/java/io/grpc/kotlin/generator/protoc", |
| 24 | + "@maven//:com_google_truth_truth", |
| 25 | + ], |
| 26 | +) |
| 27 | + |
| 28 | +kt_jvm_test( |
| 29 | + name = "DeclarationsTest", |
| 30 | + srcs = ["DeclarationsTest.kt"], |
| 31 | + test_class = "io.grpc.kotlin.generator.protoc.DeclarationsTest", |
| 32 | + deps = [ |
| 33 | + "//compiler/src/main/java/io/grpc/kotlin/generator/protoc", |
| 34 | + "//compiler/src/main/java/io/grpc/kotlin/generator/protoc/testing", |
| 35 | + "@maven//:com_google_truth_truth", |
| 36 | + ], |
| 37 | +) |
| 38 | + |
| 39 | +kt_jvm_test( |
| 40 | + name = "DescriptorUtilTest", |
| 41 | + srcs = ["DescriptorUtilTest.kt"], |
| 42 | + test_class = "io.grpc.kotlin.generator.protoc.DescriptorUtilTest", |
| 43 | + deps = [ |
| 44 | + "//compiler/src/main/java/io/grpc/kotlin/generator/protoc", |
| 45 | + "//compiler/src/test/proto/testing:example3_java_proto", |
| 46 | + "//compiler/src/test/proto/testing:has_explicit_outer_class_name_java_proto", |
| 47 | + "//compiler/src/test/proto/testing:has_nested_class_name_conflict_java_proto", |
| 48 | + "//compiler/src/test/proto/testing:has_outer_class_name_conflict_java_proto", |
| 49 | + "//compiler/src/test/proto/testing:proto-file-with-hyphen_java_proto", |
| 50 | + "@maven//:com_google_truth_truth", |
| 51 | + ], |
| 52 | +) |
| 53 | + |
| 54 | +kt_jvm_test( |
| 55 | + name = "GeneratorConfigTest", |
| 56 | + srcs = ["GeneratorConfigTest.kt"], |
| 57 | + test_class = "io.grpc.kotlin.generator.protoc.GeneratorConfigTest", |
| 58 | + deps = [ |
| 59 | + "//compiler/src/main/java/io/grpc/kotlin/generator/protoc", |
| 60 | + "//compiler/src/test/proto/testing:example3_java_proto", |
| 61 | + "//compiler/src/test/proto/testing:has_explicit_outer_class_name_java_proto", |
| 62 | + "//compiler/src/test/proto/testing:has_outer_class_name_conflict_java_proto", |
| 63 | + "//compiler/src/test/proto/testing:implicit_java_package_java_proto", |
| 64 | + "//compiler/src/test/proto/testing:service_name_conflicts_with_file_java_proto", |
| 65 | + "@maven//:com_google_truth_truth", |
| 66 | + ], |
| 67 | +) |
| 68 | + |
| 69 | +kt_jvm_test( |
| 70 | + name = "JavaPackagePolicyTest", |
| 71 | + srcs = ["JavaPackagePolicyTest.kt"], |
| 72 | + test_class = "io.grpc.kotlin.generator.protoc.JavaPackagePolicyTest", |
| 73 | + deps = [ |
| 74 | + "//compiler/src/main/java/io/grpc/kotlin/generator/protoc", |
| 75 | + "//compiler/src/test/proto/testing:example3_java_proto", |
| 76 | + "//compiler/src/test/proto/testing:implicit_java_package_java_proto", |
| 77 | + "@maven//:com_google_truth_truth", |
| 78 | + ], |
| 79 | +) |
| 80 | + |
| 81 | +kt_jvm_test( |
| 82 | + name = "MemberSimpleNameTest", |
| 83 | + srcs = ["MemberSimpleNameTest.kt"], |
| 84 | + test_class = "io.grpc.kotlin.generator.protoc.MemberSimpleNameTest", |
| 85 | + deps = [ |
| 86 | + "//compiler/src/main/java/io/grpc/kotlin/generator/protoc", |
| 87 | + "@maven//:com_google_truth_truth", |
| 88 | + ], |
| 89 | +) |
| 90 | + |
| 91 | +kt_jvm_test( |
| 92 | + name = "ProtoEnumValueNameTest", |
| 93 | + srcs = ["ProtoEnumValueNameTest.kt"], |
| 94 | + test_class = "io.grpc.kotlin.generator.protoc.ProtoEnumValueNameTest", |
| 95 | + deps = [ |
| 96 | + "//compiler/src/main/java/io/grpc/kotlin/generator/protoc", |
| 97 | + "//compiler/src/test/proto/testing:example3_java_proto", |
| 98 | + "@maven//:com_google_truth_truth", |
| 99 | + ], |
| 100 | +) |
| 101 | + |
| 102 | +kt_jvm_test( |
| 103 | + name = "ProtoFieldNameTest", |
| 104 | + srcs = ["ProtoFieldNameTest.kt"], |
| 105 | + test_class = "io.grpc.kotlin.generator.protoc.ProtoFieldNameTest", |
| 106 | + deps = [ |
| 107 | + "//compiler/src/main/java/io/grpc/kotlin/generator/protoc", |
| 108 | + "//compiler/src/test/proto/testing:example3_java_proto", |
| 109 | + "@maven//:com_google_truth_truth", |
| 110 | + ], |
| 111 | +) |
| 112 | + |
| 113 | +kt_jvm_test( |
| 114 | + name = "ProtoFileNameTest", |
| 115 | + srcs = ["ProtoFileNameTest.kt"], |
| 116 | + test_class = "io.grpc.kotlin.generator.protoc.ProtoFileNameTest", |
| 117 | + deps = [ |
| 118 | + "//compiler/src/main/java/io/grpc/kotlin/generator/protoc", |
| 119 | + "//compiler/src/test/proto/testing:example3_java_proto", |
| 120 | + "@maven//:com_google_truth_truth", |
| 121 | + ], |
| 122 | +) |
| 123 | + |
| 124 | +kt_jvm_test( |
| 125 | + name = "ProtoTypeSimpleNameTest", |
| 126 | + srcs = ["ProtoTypeSimpleNameTest.kt"], |
| 127 | + test_class = "io.grpc.kotlin.generator.protoc.ProtoTypeSimpleNameTest", |
| 128 | + deps = [ |
| 129 | + "//compiler/src/main/java/io/grpc/kotlin/generator/protoc", |
| 130 | + "//compiler/src/test/proto/testing:example3_java_proto", |
| 131 | + "@maven//:com_google_truth_truth", |
| 132 | + ], |
| 133 | +) |
| 134 | + |
| 135 | +kt_jvm_test( |
| 136 | + name = "ScopeTest", |
| 137 | + srcs = ["ScopeTest.kt"], |
| 138 | + test_class = "io.grpc.kotlin.generator.protoc.ScopeTest", |
| 139 | + deps = [ |
| 140 | + "//compiler/src/main/java/io/grpc/kotlin/generator/protoc", |
| 141 | + "@maven//:com_google_truth_truth", |
| 142 | + ], |
| 143 | +) |
0 commit comments