Merge branch 'fix/imaging-metadata': decode tiers, preview-only and undecodable frames, GPR companions, MakerNote fields
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
70 files changed
+2201
-124
No files matched your search
@@ -15,6 +15,28 @@ public sealed class SqliteBindingTests(TestContext context) : DatabaseTest(conte
|
||||
Assert.True(parts[0] > 3 || (parts[0] == 3 && parts[1] >= 31), $"SQLite {SqliteDatabase.LibraryVersion}");
|
||||
}
|
||||
|
||||
[Test]
|
||||
public async Task CompileOptionsAreProbedOnceAndMatchTheLibrary()
|
||||
{
|
||||
await using var database = await OpenDatabaseAsync();
|
||||
var options = SqliteDatabase.CompileOptions;
|
||||
// Informational and probed once: the same list on every call, and what any connection reports.
|
||||
Assert.Same(options, SqliteDatabase.CompileOptions);
|
||||
await using var session = await database.OpenAsync(Ct);
|
||||
Assert.SequenceEqual(await session.QueryListAsync("PRAGMA compile_options", [], r => r.GetString(0), Ct), options);
|
||||
// Linux libraries keep the diagnostics (a Windows build may omit them, which leaves the list empty).
|
||||
if (!OperatingSystem.IsWindows()) Assert.Contains(options, o => o.StartsWith("THREADSAFE=", StringComparison.Ordinal));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void AProbeThatFailsInAnyWayGivesNoOptionsInsteadOfBlockingTheIndex()
|
||||
{
|
||||
// A build that returns no statement for the pragma, a column it cannot read, a SQLite error: none escapes.
|
||||
Assert.Empty(SqliteDatabase.ProbeCompileOptions(() => throw new ArgumentException("No statement in 'PRAGMA compile_options'.")));
|
||||
Assert.Empty(SqliteDatabase.ProbeCompileOptions(() => throw new InvalidOperationException("Column type 5 is not text.")));
|
||||
Assert.SequenceEqual(["THREADSAFE=1"], SqliteDatabase.ProbeCompileOptions(() => ["THREADSAFE=1"]));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public async Task ConnectionsUseTheBriefPragmas()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user