Skip to content

Commit

Permalink
fixup! fix: evaluate expressions from root to support branches
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonardHd committed Feb 5, 2024
1 parent 13e15f6 commit c2df48a
Show file tree
Hide file tree
Showing 18 changed files with 44 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
ExpressionTerminalTransformer,
)
from data_factory_testing_framework.functions.evaluator.rules import ExpressionRuleEvaluator
from data_factory_testing_framework.functions.evaluator.rules.expression_rule import EvaluationResult
from data_factory_testing_framework.functions.evaluator.rules.expression_rule_evaluator import EvaluationResult
from data_factory_testing_framework.functions.functions_repository import FunctionsRepository
from data_factory_testing_framework.state.pipeline_run_state import PipelineRunState

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from lark import Discard, Token, Transformer

from data_factory_testing_framework.exceptions.expression_evaluation_error import ExpressionEvaluationError
from data_factory_testing_framework.functions.evaluator.rules.expression_rule import EvaluationResult
from data_factory_testing_framework.functions.evaluator.rules.expression_rule_evaluator import EvaluationResult
from data_factory_testing_framework.state.run_parameter_type import RunParameterType


Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
from .activity_reference_expression_rule import ActivityReferenceExpressionRuleEvaluator
from .branch_expression_rule import BranchExpressionRuleEvaluator
from .dataset_reference_expression_rule import DatasetReferenceExpressionRuleEvaluator
from .evaluation_expression_rule import EvaluationExpressionRuleEvaluator
from .expression_parameter_expression_rule import ExpressionParameterExpressionRuleEvaluator
from .expression_rule import ExpressionRuleEvaluator
from .function_call_expression_rule import FunctionCallExpressionRuleEvaluator
from .item_reference_expression_rule import ItemReferenceExpressionRuleEvaluator
from .linked_service_reference_expression_rule import LinkedServiceReferenceExpressionRuleEvaluator
from .literal_evaluation_expression_rule import LiteralEvaluationExpressionRuleEvaluator
from .literal_interpolation_expression_rule import LiteralInterpolationExpressionRuleEvaluator
from .logical_bool_expression_rule import LogicalBoolExpressionEvaluator
from .pipeline_reference_expression_rule import PipelineReferenceExpressionRuleEvaluator
from .system_variable_reference_expression_rule import SystemVariableReferenceExpressionRuleEvaluator
from .variable_reference_expression_rule import VariableReferenceExpressionRuleEvaluator
from .activity_reference_expression_rule_evaluator import ActivityReferenceExpressionRuleEvaluator
from .branch_expression_rule_evaluator import BranchExpressionRuleEvaluator
from .dataset_reference_expression_rule_evaluator import DatasetReferenceExpressionRuleEvaluator
from .evaluation_expression_rule_evaluator import EvaluationExpressionRuleEvaluator
from .expression_parameter_expression_rule_evaluator import ExpressionParameterExpressionRuleEvaluator
from .expression_rule_evaluator import ExpressionRuleEvaluator
from .function_call_expression_rule_evaluator import FunctionCallExpressionRuleEvaluator
from .item_reference_expression_rule_evaluator import ItemReferenceExpressionRuleEvaluator
from .linked_service_reference_expression_rule_evaluator import LinkedServiceReferenceExpressionRuleEvaluator
from .literal_evaluation_expression_rule_evaluator import LiteralEvaluationExpressionRuleEvaluator
from .literal_interpolation_expression_rule_evaluator import LiteralInterpolationExpressionRuleEvaluator
from .logical_bool_expression_rule_evaluator import LogicalBoolExpressionEvaluator
from .pipeline_reference_expression_rule_evaluator import PipelineReferenceExpressionRuleEvaluator
from .system_variable_reference_expression_rule_evaluator import SystemVariableReferenceExpressionRuleEvaluator
from .variable_reference_expression_rule_evaluator import VariableReferenceExpressionRuleEvaluator

__all__ = [
"ActivityReferenceExpressionRuleEvaluator",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
ExpressionEvaluationInvalidChildTypeError,
ExpressionEvaluationInvalidNumberOfChildrenError,
)
from data_factory_testing_framework.functions.evaluator.rules.expression_rule import EvaluationResult
from data_factory_testing_framework.functions.evaluator.rules.expression_rule_evaluator import EvaluationResult
from data_factory_testing_framework.state.pipeline_run_state import PipelineRunState

from .expression_rule import ExpressionRuleEvaluator
from .expression_rule_evaluator import ExpressionRuleEvaluator


class ActivityReferenceExpressionRuleEvaluator(ExpressionRuleEvaluator):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
ExpressionEvaluationInvalidChildTypeError,
ExpressionEvaluationInvalidNumberOfChildrenError,
)
from data_factory_testing_framework.functions.evaluator.rules.expression_rule import EvaluationResult
from data_factory_testing_framework.functions.evaluator.rules.expression_rule_evaluator import EvaluationResult

from .expression_rule import ExpressionRuleEvaluator
from .expression_rule_evaluator import ExpressionRuleEvaluator


class BranchExpressionRuleEvaluator(ExpressionRuleEvaluator):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
ExpressionEvaluationInvalidChildTypeError,
ExpressionEvaluationInvalidNumberOfChildrenError,
)
from data_factory_testing_framework.functions.evaluator.rules.expression_rule import EvaluationResult
from data_factory_testing_framework.functions.evaluator.rules.expression_rule_evaluator import EvaluationResult
from data_factory_testing_framework.state.pipeline_run_state import PipelineRunState
from data_factory_testing_framework.state.run_parameter_type import RunParameterType

from .expression_rule import ExpressionRuleEvaluator
from .expression_rule_evaluator import ExpressionRuleEvaluator


class DatasetReferenceExpressionRuleEvaluator(ExpressionRuleEvaluator):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

from data_factory_testing_framework.exceptions.expression_evaluation_error import ExpressionEvaluationError
from data_factory_testing_framework.functions.evaluator.exceptions import ExpressionEvaluationInvalidChildTypeError
from data_factory_testing_framework.functions.evaluator.rules.expression_rule import EvaluationResult
from data_factory_testing_framework.functions.evaluator.rules.expression_rule_evaluator import EvaluationResult

from .expression_rule import ExpressionRuleEvaluator
from .expression_rule_evaluator import ExpressionRuleEvaluator


class EvaluationExpressionRuleEvaluator(ExpressionRuleEvaluator):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
ExpressionEvaluationInvalidChildTypeError,
ExpressionEvaluationInvalidNumberOfChildrenError,
)
from data_factory_testing_framework.functions.evaluator.rules.expression_rule import EvaluationResult
from data_factory_testing_framework.functions.evaluator.rules.expression_rule_evaluator import EvaluationResult

from .expression_rule import ExpressionRuleEvaluator
from .expression_rule_evaluator import ExpressionRuleEvaluator


class ExpressionParameterExpressionRuleEvaluator(ExpressionRuleEvaluator):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from data_factory_testing_framework.exceptions.expression_evaluation_error import ExpressionEvaluationError
from data_factory_testing_framework.functions.evaluator.exceptions import ExpressionEvaluationInvalidChildTypeError
from data_factory_testing_framework.functions.evaluator.rules.expression_rule import (
from data_factory_testing_framework.functions.evaluator.rules.expression_rule_evaluator import (
EvaluationResult,
ExpressionRuleEvaluator,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
from data_factory_testing_framework.functions.evaluator.exceptions import (
ExpressionEvaluationInvalidNumberOfChildrenError,
)
from data_factory_testing_framework.functions.evaluator.rules.expression_rule import EvaluationResult
from data_factory_testing_framework.functions.evaluator.rules.expression_rule_evaluator import EvaluationResult
from data_factory_testing_framework.state.pipeline_run_state import PipelineRunState

from .expression_rule import ExpressionRuleEvaluator
from .expression_rule_evaluator import ExpressionRuleEvaluator


class ItemReferenceExpressionRuleEvaluator(ExpressionRuleEvaluator):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
ExpressionEvaluationInvalidChildTypeError,
ExpressionEvaluationInvalidNumberOfChildrenError,
)
from data_factory_testing_framework.functions.evaluator.rules.expression_rule import EvaluationResult
from data_factory_testing_framework.functions.evaluator.rules.expression_rule_evaluator import EvaluationResult
from data_factory_testing_framework.state.pipeline_run_state import PipelineRunState
from data_factory_testing_framework.state.run_parameter_type import RunParameterType

from .expression_rule import ExpressionRuleEvaluator
from .expression_rule_evaluator import ExpressionRuleEvaluator


class LinkedServiceReferenceExpressionRuleEvaluator(ExpressionRuleEvaluator):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
ExpressionEvaluationInvalidChildTypeError,
ExpressionEvaluationInvalidNumberOfChildrenError,
)
from data_factory_testing_framework.functions.evaluator.rules.expression_rule import EvaluationResult
from data_factory_testing_framework.functions.evaluator.rules.expression_rule_evaluator import EvaluationResult

from .expression_rule import ExpressionRuleEvaluator
from .expression_rule_evaluator import ExpressionRuleEvaluator


class LiteralEvaluationExpressionRuleEvaluator(ExpressionRuleEvaluator):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

from data_factory_testing_framework.exceptions.expression_evaluation_error import ExpressionEvaluationError
from data_factory_testing_framework.functions.evaluator.exceptions import ExpressionEvaluationInvalidChildTypeError
from data_factory_testing_framework.functions.evaluator.rules.expression_rule import EvaluationResult
from data_factory_testing_framework.functions.evaluator.rules.expression_rule_evaluator import EvaluationResult

from .expression_rule import ExpressionRuleEvaluator
from .expression_rule_evaluator import ExpressionRuleEvaluator


class LiteralInterpolationExpressionRuleEvaluator(ExpressionRuleEvaluator):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
ExpressionEvaluationInvalidChildTypeError,
ExpressionEvaluationInvalidNumberOfChildrenError,
)
from data_factory_testing_framework.functions.evaluator.rules.expression_rule import EvaluationResult
from data_factory_testing_framework.functions.evaluator.rules.expression_rule_evaluator import EvaluationResult

from .expression_rule import ExpressionRuleEvaluator
from .expression_rule_evaluator import ExpressionRuleEvaluator


class LogicalBoolExpressionEvaluator(ExpressionRuleEvaluator):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
ExpressionEvaluationInvalidChildTypeError,
ExpressionEvaluationInvalidNumberOfChildrenError,
)
from data_factory_testing_framework.functions.evaluator.rules.expression_rule import EvaluationResult
from data_factory_testing_framework.functions.evaluator.rules.expression_rule_evaluator import EvaluationResult
from data_factory_testing_framework.state.pipeline_run_state import PipelineRunState

from .expression_rule import ExpressionRuleEvaluator
from .expression_rule_evaluator import ExpressionRuleEvaluator


class PipelineReferenceExpressionRuleEvaluator(ExpressionRuleEvaluator):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
ExpressionEvaluationInvalidChildTypeError,
ExpressionEvaluationInvalidNumberOfChildrenError,
)
from data_factory_testing_framework.functions.evaluator.rules.expression_rule import EvaluationResult
from data_factory_testing_framework.functions.evaluator.rules.expression_rule_evaluator import EvaluationResult
from data_factory_testing_framework.state.pipeline_run_state import PipelineRunState
from data_factory_testing_framework.state.run_parameter_type import RunParameterType

from .expression_rule import ExpressionRuleEvaluator
from .expression_rule_evaluator import ExpressionRuleEvaluator


class SystemVariableReferenceExpressionRuleEvaluator(ExpressionRuleEvaluator):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
ExpressionEvaluationInvalidChildTypeError,
ExpressionEvaluationInvalidNumberOfChildrenError,
)
from data_factory_testing_framework.functions.evaluator.rules.expression_rule import EvaluationResult
from data_factory_testing_framework.functions.evaluator.rules.expression_rule_evaluator import EvaluationResult
from data_factory_testing_framework.state.pipeline_run_state import PipelineRunState

from .expression_rule import ExpressionRuleEvaluator
from .expression_rule_evaluator import ExpressionRuleEvaluator


class VariableReferenceExpressionRuleEvaluator(ExpressionRuleEvaluator):
Expand Down

0 comments on commit c2df48a

Please sign in to comment.