< Summary

Information
Class: GistBackend.Handlers.MariaDbHandler.TransactionHandle
Assembly: GistBackend
File(s): /home/runner/work/the-gist-of-it-sec/the-gist-of-it-sec/backend/GistBackend/Handlers/MariaDbHandler/TransactionHandle.cs
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 16
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%
get_Connection()100%11100%
get_Transaction()100%11100%
DisposeAsync()100%11100%

File(s)

/home/runner/work/the-gist-of-it-sec/the-gist-of-it-sec/backend/GistBackend/Handlers/MariaDbHandler/TransactionHandle.cs

#LineLine coverage
 1using System.Data.Common;
 2
 3namespace GistBackend.Handlers.MariaDbHandler;
 4
 6355public class TransactionHandle(DbConnection connection, DbTransaction transaction)
 6{
 19197    public DbConnection Connection { get; } = connection;
 25728    public DbTransaction Transaction { get; } = transaction;
 9
 10    public async ValueTask DisposeAsync()
 11    {
 65712        GC.SuppressFinalize(this);
 65713        await Transaction.DisposeAsync();
 65714        await Connection.DisposeAsync();
 65715    }
 16}