< Summary

Information
Class: GistBackend.Handlers.ChromaDbHandler.MetadataConfiguration
Assembly: GistBackend
File(s): /home/runner/work/the-gist-of-it-sec/the-gist-of-it-sec/backend/GistBackend/Handlers/ChromaDbHandler/CollectionDefinition.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 15
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%

File(s)

/home/runner/work/the-gist-of-it-sec/the-gist-of-it-sec/backend/GistBackend/Handlers/ChromaDbHandler/CollectionDefinition.cs

#LineLine coverage
 1using System.Text.Json.Serialization;
 2
 3namespace GistBackend.Handlers.ChromaDbHandler;
 4
 5[method: JsonConstructor]
 6public record CollectionDefinition(string Name)
 7{
 8    public MetadataConfiguration Metadata = new();
 9}
 10
 11public record MetadataConfiguration
 12{
 13    [JsonPropertyName("hnsw:space")]
 714    public string Space = "cosine";
 15}

Methods/Properties

.ctor()