You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ys...@apache.org on 2024/01/01 06:34:06 UTC
(skywalking-graalvm-distro) branch main updated: fix some typo
This is an automated email from the ASF dual-hosted git repository.
yswdqz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-graalvm-distro.git
The following commit(s) were added to refs/heads/main by this push:
new 60c7ed5 fix some typo
60c7ed5 is described below
commit 60c7ed59356aba3563ec8b435da6eb6c7189561e
Author: yswdqz <74...@users.noreply.github.com>
AuthorDate: Mon Jan 1 14:33:54 2024 +0800
fix some typo
---
.../java/org/apache/skywalking/mal/rt/MalTest.java | 20 +-------------------
1 file changed, 1 insertion(+), 19 deletions(-)
diff --git a/graal-oap-impl/mal-rt/src/test/java/org/apache/skywalking/mal/rt/MalTest.java b/graal-oap-impl/mal-rt/src/test/java/org/apache/skywalking/mal/rt/MalTest.java
index 9fe1da5..facc4ba 100644
--- a/graal-oap-impl/mal-rt/src/test/java/org/apache/skywalking/mal/rt/MalTest.java
+++ b/graal-oap-impl/mal-rt/src/test/java/org/apache/skywalking/mal/rt/MalTest.java
@@ -49,24 +49,6 @@ import static com.google.common.collect.ImmutableMap.of;
class MalTest {
- @Test
- void test() {
- ImmutableMap<String, SampleFamily> input = ImmutableMap.of(
- "http_success_request", SampleFamilyBuilder.newBuilder(
- Sample.builder().labels(of("idc", "t1")).value(50).build(),
- Sample.builder().labels(of("idc", "t3", "region", "cn", "svc", "catalog")).value(51).name("http_success_request").build(),
- Sample.builder().labels(of("idc", "t3", "region", "cn", "svc", "product")).value(51).name("http_success_request").build(),
- Sample.builder().labels(of("idc", "t1", "region", "us", "svc", "product")).value(50).name("http_success_request").build(),
- Sample.builder().labels(of("idc", "t1", "region", "us", "instance", "10.0.0.1")).value(100).name("http_success_request").build(),
- Sample.builder().labels(of("idc", "t3", "region", "cn", "instance", "10.0.0.1")).value(3).name("http_success_request").build()
- ).build(),
- "test", SampleFamilyBuilder.newBuilder(
- Sample.builder().name("test").labels(ImmutableMap.of("region","cn")).value(1).build()).build()
- );
-
-
- }
-
public static Collection<Object[]> data() {
return Arrays.asList(new Object[][] {
{
@@ -82,7 +64,7 @@ class MalTest {
NamingControl namingControl = new NamingControl(100, 100, 100, new EndpointNameGrouping());
MeterEntity.setNamingControl(namingControl);
- MALCoreLexer malLexer = new MALCoreLexer(CharStreams.fromString("(http_success_request.sum(['region']) + test.sum(['region']) * 100 ).service(['region'], Layer.MYSQL)"));
+ MALCoreLexer malLexer = new MALCoreLexer(CharStreams.fromString(mal));
CommonTokenStream tokens = new CommonTokenStream(malLexer);
MALCoreParser malParser = new MALCoreParser(tokens);
MALCoreParser.MalExpressionContext malExpressionContext = malParser.malExpression();