Summary

Class:CBAM.SQL.PostgreSQL.Implementation.PgSQLConnectionAcquireInfo
Assembly:CBAM.SQL.PostgreSQL.Implementation
File(s):/repo-dir/contents/Source/Code/CBAM.SQL.PostgreSQL.Implementation/ConnectionPool.cs
Covered lines:3
Uncovered lines:0
Coverable lines:3
Total lines:41
Line coverage:100%

Coverage History

Metrics

MethodCyclomatic complexity NPath complexity Sequence coverage Branch coverage
.ctor(...)101%0%
DisposeBeforeClosingChannel(...)101%0%

File(s)

/repo-dir/contents/Source/Code/CBAM.SQL.PostgreSQL.Implementation/ConnectionPool.cs

#LineLine coverage
 1/*
 2 * Copyright 2017 Stanislav Muhametsin. All rights Reserved.
 3 *
 4 * Licensed  under the  Apache License,  Version 2.0  (the "License");
 5 * you may not use  this file  except in  compliance with the License.
 6 * You may obtain a copy of the License at
 7 *
 8 *   http://www.apache.org/licenses/LICENSE-2.0
 9 *
 10 * Unless required by applicable law or agreed to in writing, software
 11 * distributed  under the  License is distributed on an "AS IS" BASIS,
 12 * WITHOUT  WARRANTIES OR CONDITIONS  OF ANY KIND, either  express  or
 13 * implied.
 14 *
 15 * See the License for the specific language governing permissions and
 16 * limitations under the License.
 17 */
 18using CBAM.Abstractions.Implementation;
 19using System;
 20using System.Collections.Generic;
 21using System.IO;
 22using System.Text;
 23using System.Threading;
 24using System.Threading.Tasks;
 25
 26namespace CBAM.SQL.PostgreSQL.Implementation
 27{
 28   internal sealed class PgSQLConnectionAcquireInfo : ConnectionAcquireInfoImpl<PgSQLConnectionImpl, PostgreSQLProtocol,
 29   {
 30      public PgSQLConnectionAcquireInfo( PgSQLConnectionImpl connection, PostgreSQLProtocol functionality )
 2431         : base( connection, functionality, functionality.Stream )
 32      {
 33
 2434      }
 35
 36      protected override Task DisposeBeforeClosingChannel( CancellationToken token )
 37      {
 2438         return this.Functionality.PerformClose( token );
 39      }
 40   }
 41}