< Summary

Class:Azure.Data.Tables.Queryable.ExpressionParser
Assembly:Azure.Data.Tables
File(s):C:\Git\azure-sdk-for-net\sdk\tables\Azure.Data.Tables\src\Queryable\ExpressionParser.cs
Covered lines:5
Uncovered lines:0
Coverable lines:5
Total lines:29
Line coverage:100% (5 of 5)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
get_FilterString()-100%100%
Translate(...)-100%100%
VisitLambda(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\tables\Azure.Data.Tables\src\Queryable\ExpressionParser.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System.Collections.Generic;
 5using System.Linq.Expressions;
 6using Azure.Core;
 7
 8namespace Azure.Data.Tables.Queryable
 9{
 10    internal class ExpressionParser : LinqExpressionVisitor
 11    {
 12        /// <summary>
 13        /// Gets or sets the filter expression to use in the table query.
 14        /// </summary>
 15        /// <value>A string containing the filter expression to use in the query.</value>
 137216        public string FilterString { get; set; }
 17
 18        internal void Translate(Expression e)
 19        {
 46020            Visit(e);
 46021        }
 22
 23        internal override Expression VisitLambda(LambdaExpression lambda)
 24        {
 46025            FilterString = ExpressionWriter.ExpressionToString(lambda.Body);
 46026            return lambda;
 27        }
 28    }
 29}