audit notes work completed, test fixes work (95% done), new sprints, new data sources setup and configuration
This commit is contained in:
@@ -500,6 +500,23 @@ internal sealed class MockReachGraphAdapter : IReachGraphAdapter
|
||||
});
|
||||
}
|
||||
|
||||
public Task<bool> HasGraphAsync(string artifactDigest, CancellationToken ct)
|
||||
{
|
||||
ct.ThrowIfCancellationRequested();
|
||||
return Task.FromResult(true);
|
||||
}
|
||||
|
||||
public Task<ReachGraphMetadata?> GetMetadataAsync(string artifactDigest, CancellationToken ct)
|
||||
{
|
||||
ct.ThrowIfCancellationRequested();
|
||||
return Task.FromResult<ReachGraphMetadata?>(new ReachGraphMetadata
|
||||
{
|
||||
ArtifactDigest = artifactDigest,
|
||||
GeneratedAt = _timeProvider.GetUtcNow(),
|
||||
SymbolCount = 100
|
||||
});
|
||||
}
|
||||
|
||||
private static string MakeKey(SymbolRef symbol, string artifactDigest)
|
||||
=> $"{symbol.Purl}:{symbol.Symbol}:{artifactDigest}";
|
||||
}
|
||||
@@ -569,6 +586,24 @@ internal sealed class MockSignalsAdapter : ISignalsAdapter
|
||||
});
|
||||
}
|
||||
|
||||
public Task<bool> HasFactsAsync(string artifactDigest, string? tenantId, CancellationToken ct)
|
||||
{
|
||||
ct.ThrowIfCancellationRequested();
|
||||
return Task.FromResult(true);
|
||||
}
|
||||
|
||||
public Task<SignalsMetadata?> GetMetadataAsync(string artifactDigest, string? tenantId, CancellationToken ct)
|
||||
{
|
||||
ct.ThrowIfCancellationRequested();
|
||||
return Task.FromResult<SignalsMetadata?>(new SignalsMetadata
|
||||
{
|
||||
ArtifactDigest = artifactDigest,
|
||||
FirstObservation = _timeProvider.GetUtcNow().AddDays(-30),
|
||||
LastObservation = _timeProvider.GetUtcNow(),
|
||||
TotalObservations = 1000
|
||||
});
|
||||
}
|
||||
|
||||
private static string MakeKey(SymbolRef symbol, string artifactDigest)
|
||||
=> $"{symbol.Purl}:{symbol.Symbol}:{artifactDigest}";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user