< Summary

Information
Class: ArturRios.Data.MongoDb.MongoCollectionAttribute
Assembly: ArturRios.Data.MongoDb
File(s): D:\Repositories\dotnet-data\src\ArturRios.Data.MongoDb\MongoCollectionAttribute.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 10
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
100%
Covered methods: 2
Fully covered methods: 2
Total methods: 2
Method coverage: 100%
Full method coverage: 100%

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%
get_Name()100%11100%

File(s)

D:\Repositories\dotnet-data\src\ArturRios.Data.MongoDb\MongoCollectionAttribute.cs

#LineLine coverage
 1namespace ArturRios.Data.MongoDb;
 2
 3/// <summary>Overrides the MongoDB collection name for a document type.</summary>
 4/// <param name="name">The collection name to use.</param>
 5[AttributeUsage(AttributeTargets.Class, Inherited = false)]
 16public sealed class MongoCollectionAttribute(string name) : Attribute
 7{
 8    /// <summary>The collection name.</summary>
 29    public string Name { get; } = name;
 10}

Methods/Properties

.ctor(System.String)
get_Name()