From 387f6ca8669fa47376694e786f2a297e352641b8 Mon Sep 17 00:00:00 2001 From: Sokwhan Huh Date: Mon, 3 Nov 2025 21:40:20 +0000 Subject: [PATCH] Remove test/v1 directory and its protos --- proto/test/v1/BUILD.bazel | 31 --------- proto/test/v1/simple.proto | 126 ------------------------------------- 2 files changed, 157 deletions(-) delete mode 100644 proto/test/v1/BUILD.bazel delete mode 100644 proto/test/v1/simple.proto diff --git a/proto/test/v1/BUILD.bazel b/proto/test/v1/BUILD.bazel deleted file mode 100644 index 2b4b91f..0000000 --- a/proto/test/v1/BUILD.bazel +++ /dev/null @@ -1,31 +0,0 @@ -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") - -package( - default_visibility = ["//visibility:public"], -) - -licenses(["notice"]) # Apache 2.0 - -exports_files(["LICENSE"]) - -proto_library( - name = "simple_proto", - srcs = [ - "simple.proto", - ], - deps = [ - "//proto/cel/expr:expr_proto", - "@com_google_protobuf//:empty_proto", - ], -) - -cc_proto_library( - name = "simple_cc_proto", - deps = [":simple_proto", - ], -) - -java_proto_library( - name = "simple_java_proto", - deps = [":simple_proto"], -) diff --git a/proto/test/v1/simple.proto b/proto/test/v1/simple.proto deleted file mode 100644 index c3a5890..0000000 --- a/proto/test/v1/simple.proto +++ /dev/null @@ -1,126 +0,0 @@ -// Simple end-to-end conformance tests. - -syntax = "proto3"; - -package cel.expr.test.v1; - -// Note, run regen_go_proto.sh after making modifications to this file. -option go_package = "cel.dev/expr/test/v1/testpb"; -option java_outer_classname = "SimpleProto"; -option java_package = "dev.cel.expr.test.v1"; - -import "cel/expr/checked.proto"; -import "cel/expr/eval.proto"; -import "cel/expr/value.proto"; - -// The format of a simple test file, expected to be stored in text format. -// A file is the unit of granularity for selecting conformance tests, -// so tests of optional features should be segregated into separate files. -message SimpleTestFile { - // Required. The name of the file. Should match the filename. - string name = 1; - - // A description of the file. - string description = 2; - - // The contained sections. - repeated SimpleTestSection section = 3; -} - -// A collection of related SimpleTests. -// -// The section is the unit of organization within a test file, and should -// guide where new tests are added. -message SimpleTestSection { - // Required. The name of the section. - string name = 1; - - // A description of the section. - string description = 2; - - // The contained tests. - repeated SimpleTest test = 3; -} - -// A test which should run the given CEL program through parsing, -// optionally through checking, then evaluation, with the results -// of the pipeline validated by the given result matcher. -message SimpleTest { - // Required. The name of the test, which should be unique in the test file. - string name = 1; - - // A description of the test. - string description = 2; - - // Required. The text of the CEL expression. - string expr = 3; - - // Disables all macro expansion in parsing. - bool disable_macros = 4; - - // Disables the check phase. - bool disable_check = 5; - - // Disables the evaluate phase. - bool check_only = 15; - - // The type environment to use for the check phase. - repeated cel.expr.Decl type_env = 6; - - // The container for name resolution. - string container = 13; - - // Variable bindings to use for the eval phase. - map bindings = 7; - - // An unspecified result defaults to a matcher for the true boolean value. - oneof result_matcher { - // A normal value, which must match the evaluation result exactly - // via value equality semantics. This coincides with proto equality, - // except for: - // * maps are order-agnostic. - // * a floating point NaN should match any NaN. - cel.expr.Value value = 8; - - // A result and deduced expression type. - TypedResult typed_result = 16; - - // Matches error evaluation results. - cel.expr.ErrorSet eval_error = 9; - - // Matches one of several error results. - // (Using explicit message since oneof can't handle repeated.) - ErrorSetMatcher any_eval_errors = 10; - - // Matches unknown evaluation results. - cel.expr.UnknownSet unknown = 11; - - // Matches one of several unknown results. - // (Using explicit message since oneof can't handle repeated.) - UnknownSetMatcher any_unknowns = 12; - } - reserved 14; - // Next is 17. -} - -// Matches a result along with deduced expression type. -message TypedResult { - // A normal value, which must match the evaluation result exactly - // via value equality semantics. This is ignored if the test is `check_only`. - cel.expr.Value result = 1; - - // The deduced type of the expression as reported by the checker. - cel.expr.Type deduced_type = 2; -} - -// Matches error results from Eval. -message ErrorSetMatcher { - // Success if we match any of these sets. - repeated cel.expr.ErrorSet errors = 1; -} - -// Matches unknown results from Eval. -message UnknownSetMatcher { - // Success if we match any of these sets. - repeated cel.expr.UnknownSet unknowns = 1; -}