Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
using System.Linq;
using System.Threading.Tasks;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Engines;
using JsonFlatFileDataStore.Test;

namespace JsonFlatFileDataStore.Benchmark;
namespace JsonFlatFileDataStore.Benchmark;

[SimpleJob(RunStrategy.Monitoring, launchCount: 1, warmupCount: 5, iterationCount: 50)]
public class DynamicCollectionBenchmark
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Engines;
using JsonFlatFileDataStore.Test;

namespace JsonFlatFileDataStore.Benchmark;
namespace JsonFlatFileDataStore.Benchmark;

[SimpleJob(RunStrategy.Throughput, launchCount: 1, warmupCount: 5, iterationCount: 50)]
public class ObjectExtensionsBenchmark
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
using System.Linq;
using System.Threading.Tasks;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Engines;
using JsonFlatFileDataStore.Test;

namespace JsonFlatFileDataStore.Benchmark;
namespace JsonFlatFileDataStore.Benchmark;

[SimpleJob(RunStrategy.Monitoring, launchCount: 1, warmupCount: 5, iterationCount: 50)]
public class TypedCollectionBenchmark
Expand Down
6 changes: 6 additions & 0 deletions JsonFlatFileDataStore.Benchmark/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
global using System.Linq;
global using System.Threading.Tasks;
global using BenchmarkDotNet.Attributes;
global using BenchmarkDotNet.Engines;
global using BenchmarkDotNet.Running;
global using JsonFlatFileDataStore.Test;
4 changes: 1 addition & 3 deletions JsonFlatFileDataStore.Benchmark/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using BenchmarkDotNet.Running;

namespace JsonFlatFileDataStore.Benchmark;
namespace JsonFlatFileDataStore.Benchmark;

internal class Program
{
Expand Down
6 changes: 1 addition & 5 deletions JsonFlatFileDataStore.Test/CollectionInsertBatchTests.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System.Linq;
using System.Threading.Tasks;
using Xunit;

namespace JsonFlatFileDataStore.Test;
namespace JsonFlatFileDataStore.Test;

public class CollectionInsertBatchTests
{
Expand Down
6 changes: 1 addition & 5 deletions JsonFlatFileDataStore.Test/CollectionModificationTests.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using System.Dynamic;
using System.Linq;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Xunit;

namespace JsonFlatFileDataStore.Test;

Expand Down
4 changes: 1 addition & 3 deletions JsonFlatFileDataStore.Test/CollectionQueryTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Linq;
using Newtonsoft.Json.Linq;
using Xunit;
using Newtonsoft.Json.Linq;

namespace JsonFlatFileDataStore.Test;

Expand Down
1 change: 0 additions & 1 deletion JsonFlatFileDataStore.Test/CopyPropertiesTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.Dynamic;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Xunit;

namespace JsonFlatFileDataStore.Test;

Expand Down
6 changes: 1 addition & 5 deletions JsonFlatFileDataStore.Test/DataStoreDisposeTests.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Xunit;
using System.Diagnostics;

namespace JsonFlatFileDataStore.Test;

Expand Down
7 changes: 1 addition & 6 deletions JsonFlatFileDataStore.Test/DataStoreTests.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Dynamic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
using NSubstitute;
using Xunit;

namespace JsonFlatFileDataStore.Test;

Expand Down
6 changes: 1 addition & 5 deletions JsonFlatFileDataStore.Test/FileContentTests.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
using System;
using System.Dynamic;
using System.Dynamic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Xunit;

namespace JsonFlatFileDataStore.Test;

Expand Down
5 changes: 5 additions & 0 deletions JsonFlatFileDataStore.Test/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
global using System;
global using System.Collections.Generic;
global using System.Linq;
global using System.Threading.Tasks;
global using Xunit;
8 changes: 1 addition & 7 deletions JsonFlatFileDataStore.Test/SingleItemTests.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Xunit;

namespace JsonFlatFileDataStore.Test;
namespace JsonFlatFileDataStore.Test;

public class SingleItemTests
{
Expand Down
5 changes: 1 addition & 4 deletions JsonFlatFileDataStore.Test/TestModels.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;

namespace JsonFlatFileDataStore.Test;
namespace JsonFlatFileDataStore.Test;

public class TestModelWithStringArray
{
Expand Down
3 changes: 1 addition & 2 deletions JsonFlatFileDataStore.Test/UTHelpers.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.IO;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;

Expand Down
3 changes: 1 addition & 2 deletions JsonFlatFileDataStore/Aes256.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Security.Cryptography;
using System.Security.Cryptography;
using System.IO;
using System.Text;

Expand Down
3 changes: 1 addition & 2 deletions JsonFlatFileDataStore/CommitActionHandler.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Collections.Concurrent;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Threading;
using Newtonsoft.Json.Linq;
Expand Down
4 changes: 1 addition & 3 deletions JsonFlatFileDataStore/DataStore.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Collections.Concurrent;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Dynamic;
using System.Globalization;
Expand Down Expand Up @@ -436,7 +435,6 @@ private dynamic SingleDynamicItemReadConverter(JToken e)

private JObject GetJsonObjectFromFile() => JObject.Parse(GetJsonTextFromFile());


internal class CommitAction
{
public Action<bool, Exception> Ready { get; set; }
Expand Down
3 changes: 1 addition & 2 deletions JsonFlatFileDataStore/DocumentCollection.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using System.Dynamic;
using System.Linq;
using System.Threading.Tasks;
Expand Down
3 changes: 1 addition & 2 deletions JsonFlatFileDataStore/FileAccess.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Diagnostics;
using System.Diagnostics;
using System.IO;

namespace JsonFlatFileDataStore;
Expand Down
1 change: 1 addition & 0 deletions JsonFlatFileDataStore/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
global using System;
3 changes: 1 addition & 2 deletions JsonFlatFileDataStore/IDataStore.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace JsonFlatFileDataStore;
Expand Down
3 changes: 1 addition & 2 deletions JsonFlatFileDataStore/IDocumentCollection.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace JsonFlatFileDataStore;
Expand Down
3 changes: 1 addition & 2 deletions JsonFlatFileDataStore/ObjectExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Collections;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Dynamic;
Expand Down