Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
JFriel committed Jan 6, 2025
1 parent 1debdcb commit fcac338
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Rdmp.Core.Tests/DataQualityEngine/DQEPartialUpdateTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ public void SteppedDQEPartialUpdates()

var listener = new ToMemoryDataLoadEventListener(false);
report.GenerateReport(catalogue, listener, source.Token);
source.Dispose();
var lmd = new LoadMetadata(CatalogueRepository, "MyLoad");
lmd.LocationOfForLoadingDirectory = Path.GetTempPath();
lmd.LocationOfForArchivingDirectory = Path.GetTempPath();
Expand Down Expand Up @@ -280,8 +279,8 @@ public void SteppedDQEPartialUpdates()

report.Check(ThrowImmediatelyCheckNotifier.Quiet);
report.GenerateReport(catalogue, listener, source.Token);

evaluations = dqeRepository.GetAllObjectsWhere<Evaluation>("CatalogueID", catalogue.ID).ToList();//.Where(e => e.CatalogueID == catalogue.ID).ToList();
source.Dispose();

Check warning

Code scanning / CodeQL

Dispose may not be called if an exception is thrown during execution Warning test

Dispose missed if exception is thrown by
call to method GenerateReport
.
Dispose missed if exception is thrown by
call to method GetTempPath
.
Dispose missed if exception is thrown by
call to method GetTempPath
.
Dispose missed if exception is thrown by
call to method GetTempPath
.
Dispose missed if exception is thrown by
call to method GetTempPath
.
Dispose missed if exception is thrown by
call to method SaveToDatabase
.
Dispose missed if exception is thrown by
call to method CreateNewLoggingTaskIfNotExists
.
Dispose missed if exception is thrown by
call to method SaveToDatabase
.
Dispose missed if exception is thrown by
call to method LinkToCatalogue
.
Dispose missed if exception is thrown by
call to method SaveToDatabase
.
Dispose missed if exception is thrown by
call to method SetArgumentValue
.
Dispose missed if exception is thrown by
call to method SetArgumentValue
.
Dispose missed if exception is thrown by
call to method SaveToDatabase
.
Dispose missed if exception is thrown by
call to method SaveToDatabase
.
Dispose missed if exception is thrown by
call to method SetArgumentValue
.
Dispose missed if exception is thrown by
call to method SetArgumentValue
.
Dispose missed if exception is thrown by
call to method SetArgumentValue
.
Dispose missed if exception is thrown by
call to method SaveToDatabase
.
Dispose missed if exception is thrown by
call to method SaveToDatabase
.
Dispose missed if exception is thrown by
call to method Add
.
Dispose missed if exception is thrown by
call to method Add
.
Dispose missed if exception is thrown by
call to method Add
.
Dispose missed if exception is thrown by
call to method Add
.
Dispose missed if exception is thrown by
call to method Add
.
Dispose missed if exception is thrown by
call to method Add
.
Dispose missed if exception is thrown by
call to method SetupFile
.
Dispose missed if exception is thrown by
call to method PerformLoad
.
Dispose missed if exception is thrown by
call to method Check
.
Dispose missed if exception is thrown by
call to method GenerateReport
.
Dispose missed if exception is thrown by
call to method ToList
.
Dispose missed if exception is thrown by
call to method That
.
Dispose missed if exception is thrown by
call to method EqualTo
.
Dispose missed if exception is thrown by
call to method CompareEvaluations
.
Dispose missed if exception is thrown by
call to method Add
.
Dispose missed if exception is thrown by
call to method Add
.
Dispose missed if exception is thrown by
call to method Add
.
Dispose missed if exception is thrown by
call to method Add
.
Dispose missed if exception is thrown by
call to method Add
.
Dispose missed if exception is thrown by
call to method Add
.
Dispose missed if exception is thrown by
call to method Add
.
Dispose missed if exception is thrown by
call to method SetupFile
.
Dispose missed if exception is thrown by
call to method PerformLoad
.
Dispose missed if exception is thrown by
call to method Check
.
Dispose missed if exception is thrown by
call to method GenerateReport
.
Dispose missed if exception is thrown by
call to method ToList
.
Dispose missed if exception is thrown by
call to method That
.
Dispose missed if exception is thrown by
call to method EqualTo
.
Dispose missed if exception is thrown by
call to method CompareEvaluations
.
Dispose missed if exception is thrown by
call to method Add
.
Dispose missed if exception is thrown by
call to method Add
.
Dispose missed if exception is thrown by
call to method Add
.
Dispose missed if exception is thrown by
call to method Add
.
Dispose missed if exception is thrown by
call to method Add
.
Dispose missed if exception is thrown by
call to method Add
.
Dispose missed if exception is thrown by
call to method Add
.
Dispose missed if exception is thrown by [call to method
evaluations = dqeRepository.GetAllObjectsWhere<Evaluation>("CatalogueID", catalogue.ID).ToList();
Assert.That(evaluations.Count, Is.EqualTo(13));
CompareEvaluations(evaluations[12], evaluations[11]);
}
Expand Down

0 comments on commit fcac338

Please sign in to comment.