< Summary

Information
Class: Renci.SshNet.Security.Chaos.NaCl.Internal.InternalAssert
Assembly: Renci.SshNet
File(s): \home\appveyor\projects\ssh-net\src\Renci.SshNet\Security\Chaos.NaCl\Internal\InternalAssert.cs
Line coverage
75%
Covered lines: 3
Uncovered lines: 1
Coverable lines: 4
Total lines: 13
Line coverage: 75%
Branch coverage
50%
Covered branches: 1
Total branches: 2
Branch coverage: 50%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
Assert(...)50%275%

File(s)

\home\appveyor\projects\ssh-net\src\Renci.SshNet\Security\Chaos.NaCl\Internal\InternalAssert.cs

#LineLine coverage
 1using System;
 2
 3namespace Renci.SshNet.Security.Chaos.NaCl.Internal
 4{
 5    internal static class InternalAssert
 6    {
 7        internal static void Assert(bool condition, string message)
 31808        {
 31809            if (!condition)
 010                throw new InvalidOperationException("An assertion in Chaos.Crypto failed " + message);
 318011        }
 12    }
 13}