< Summary

Class:Microsoft.Azure.ContainerRegistry.Helpers
Assembly:Microsoft.Azure.ContainerRegistry
File(s):C:\Git\azure-sdk-for-net\sdk\containerregistry\Microsoft.Azure.ContainerRegistry\src\Customizations\Helpers.cs
Covered lines:3
Uncovered lines:0
Coverable lines:3
Total lines:18
Line coverage:100% (3 of 3)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
EncodeTo64(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\containerregistry\Microsoft.Azure.ContainerRegistry\src\Customizations\Helpers.cs

#LineLine coverage
 1using System;
 2using System.Text;
 3
 4namespace Microsoft.Azure.ContainerRegistry
 5{
 6    /// <summary>
 7    ///  Helper methods for the Microsoft.Azure.ContainerRegistry Package
 8    /// </summary>
 9    internal class Helpers
 10    {
 11        static public string EncodeTo64(string toEncode)
 12        {
 6013            byte[] toEncodeAsBytes = Encoding.ASCII.GetBytes(toEncode);
 6014            string returnValue = Convert.ToBase64String(toEncodeAsBytes);
 6015            return returnValue;
 16        }
 17    }
 18}

Methods/Properties

EncodeTo64(...)