Files
microsoft--semantic-kernel/dotnet/test/VectorData/CosmosMongoDB.ConformanceTests/CosmosMongoIndexKindTests.cs
T
wehub-resource-sync b957a53def
CodeQL / Analyze (csharp) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:21:23 +08:00

32 lines
1.0 KiB
C#

// Copyright (c) Microsoft. All rights reserved.
using CosmosMongoDB.ConformanceTests.Support;
using Microsoft.Extensions.VectorData;
using VectorData.ConformanceTests;
using VectorData.ConformanceTests.Support;
using VectorData.ConformanceTests.Xunit;
using Xunit;
namespace CosmosMongoDB.ConformanceTests;
public class CosmosMongoIndexKindTests(CosmosMongoIndexKindTests.Fixture fixture)
: IndexKindTests<int>(fixture), IClassFixture<CosmosMongoIndexKindTests.Fixture>
{
// Note: Cosmos Mongo support HNSW, but only in a specific tier.
// [ConditionalFact]
// public virtual Task Hnsw()
// => this.Test(IndexKind.Hnsw);
[ConditionalFact]
public virtual Task IvfFlat()
=> this.Test(IndexKind.IvfFlat);
// Cosmos Mongo does not support index-less searching
public override Task Flat() => Assert.ThrowsAsync<NotSupportedException>(base.Flat);
public new class Fixture() : IndexKindTests<int>.Fixture
{
public override TestStore TestStore => CosmosMongoTestStore.Instance;
}
}