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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:
- '.github/workflows/ci.yml'

env:
DOTNET_VERSION: 8.0.401
DOTNET_VERSION: 9.0.305
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_NOLOGO: true

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
- '.github/workflows/codeql.yml'

env:
DOTNET_VERSION: 8.0.401
DOTNET_VERSION: 9.0.305
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_NOLOGO: true

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ on:
- '.github/workflows/deploy.yml'

env:
TERRAFORM_VERSION: 1.9.5
DOTNET_VERSION: 8.0.401
TERRAFORM_VERSION: 1.13.3
DOTNET_VERSION: 9.0.305
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_NOLOGO: true
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<ProductVersion>0.1.0</ProductVersion>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
Expand Down
6 changes: 3 additions & 3 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.0.0" />
<PackageVersion Include="MimeTypeMapOfficial" Version="1.0.17" />
<PackageVersion Include="NUnit" Version="4.4.0" />
<PackageVersion Include="NUnit3TestAdapter" Version="5.1.0" />
<PackageVersion Include="NUnit3TestAdapter" Version="5.2.0" />
<PackageVersion Include="SixLabors.ImageSharp" Version="3.1.11" />
<PackageVersion Include="SixLabors.ImageSharp.Drawing" Version="2.1.7" />
<PackageVersion Include="System.IO.Abstractions" Version="21.0.29" />
<PackageVersion Include="BenchmarkDotNet" Version="0.15.4" />
<PackageVersion Include="Kiyote.Geometry" Version="0.19.3" />
<PackageVersion Include="Kiyote.Buffers" Version="0.1.0" />
<PackageVersion Include="Kiyote.Geometry" Version="0.20.0" />
<PackageVersion Include="Kiyote.Buffers" Version="0.3.0" />
<PackageVersion Include="Kiyote.Buffers.Float" Version="0.1.0" />
<PackageVersion Include="Kiyote.Files" Version="0.1.3" />
<PackageVersion Include="Kiyote.Files.Resource" Version="0.1.3" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@

[assembly: SuppressMessage( "Naming", "CA1707:Identifiers should not contain underscores", Justification = "<Pending>", Scope = "module" )]
[assembly: SuppressMessage( "Reliability", "CA2007:Consider calling ConfigureAwait on the awaited task", Justification = "<Pending>", Scope = "module" )]
[assembly: SuppressMessage( "Maintainability", "CA1515:Consider making public types internal", Justification = "<Pending>", Scope = "module" )]
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@

[assembly: SuppressMessage( "Naming", "CA1707:Identifiers should not contain underscores", Justification = "<Pending>", Scope = "module" )]
[assembly: SuppressMessage( "Reliability", "CA2007:Consider calling ConfigureAwait on the awaited task", Justification = "<Pending>", Scope = "module" )]
[assembly: SuppressMessage( "Maintainability", "CA1515:Consider making public types internal", Justification = "<Pending>", Scope = "module" )]
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.

using System.Diagnostics.CodeAnalysis;

[assembly: SuppressMessage( "Maintainability", "CA1515:Consider making public types internal", Justification = "<Pending>", Scope = "module" )]
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
// a specific target and scoped to a namespace, type, member, etc.

using System.Diagnostics.CodeAnalysis;

[assembly: SuppressMessage( "Maintainability", "CA1515:Consider making public types internal", Justification = "<Pending>", Scope = "module" )]
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public async Task Visualize() {
IReadOnlySet<Cell> saltwater = _saltwaterBuilder.Find( size, landform.Map, landform.Cells );
IReadOnlySet<Cell> lakes = ( _builder as IFreshwaterFinder ).Create( size, landform.Map, landform.Cells, saltwater );

IBuffer<float> buffer = _bufferFactory.Create<float>( size );
IBuffer<float> buffer = _bufferFactory.Create<float>( size, 0.0f );

foreach( Cell cell in landform.Cells ) {
_rasterizer.Rasterize( cell.Polygon.Points, ( int x, int y ) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
[assembly: SuppressMessage( "Naming", "CA1707:Identifiers should not contain underscores", Justification = "<Pending>", Scope = "module" )]
[assembly: SuppressMessage( "Reliability", "CA2007:Consider calling ConfigureAwait on the awaited task", Justification = "<Pending>", Scope = "module" )]
[assembly: SuppressMessage( "Performance", "CA1812:An internal (assembly-level) type is never instantiated.", Justification = "This class is instantiated via DI.", Scope = "module" )]
[assembly: SuppressMessage( "Maintainability", "CA1515:Consider making public types internal", Justification = "<Pending>", Scope = "module" )]
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public async Task Visualize() {
IReadOnlySet<Cell> freshwater = _freshwaterBuilder.Create( size, landform.Map, landform.Cells, saltwater );
IReadOnlyList<IReadOnlySet<Cell>> lakes = _builder.Finder( size, landform.Map, landform.Cells, saltwater, freshwater );

IBuffer<float> buffer = _bufferFactory.Create<float>( size );
IBuffer<float> buffer = _bufferFactory.Create<float>( size, 0.0f );

foreach( Cell cell in landform.Cells ) {
_rasterizer.Rasterize( cell.Polygon.Points, ( int x, int y ) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public async Task Visualize() {
Landform landform = await _landformBuilder.CreateAsync( size, tectonicPlates, TestContext.CurrentContext.CancellationToken );
IReadOnlySet<Cell> saltwater = ( _builder as ISaltwaterFinder ).Find( size, landform.Map, landform.Cells );

IBuffer<float> buffer = _bufferFactory.Create<float>( size );
IBuffer<float> buffer = _bufferFactory.Create<float>( size, 0.0f );


foreach( Cell cell in landform.Cells ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public async Task Visualize() {

float maximum = elevation.Max( kvp => kvp.Value );

IBuffer<float> buffer = _bufferFactory.Create<float>( size );
IBuffer<float> buffer = _bufferFactory.Create<float>( size, 0.0f );

foreach( Cell cell in landform.Cells ) {
if( !elevation.TryGetValue( cell, out float intensity ) ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public async Task Visualize() {
TectonicPlates tectonicPlates = _tectonicPlateBuilder.Create( size );
Landform landform = await _landformBuilder.CreateAsync( size, tectonicPlates, TestContext.CurrentContext.CancellationToken );

IBuffer<float> buffer = _bufferFactory.Create<float>( size );
IBuffer<float> buffer = _bufferFactory.Create<float>( size, 0.0f );

foreach( Cell cell in landform.Cells ) {
_rasterizer.Rasterize( cell.Polygon.Points, ( int x, int y ) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@

[assembly: SuppressMessage( "Naming", "CA1707:Identifiers should not contain underscores", Justification = "<Pending>", Scope = "module" )]
[assembly: SuppressMessage( "Reliability", "CA2007:Consider calling ConfigureAwait on the awaited task", Justification = "<Pending>", Scope = "module" )]
[assembly: SuppressMessage( "Maintainability", "CA1515:Consider making public types internal", Justification = "<Pending>", Scope = "module" )]
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
[assembly: SuppressMessage( "Naming", "CA1707:Identifiers should not contain underscores", Justification = "<Pending>", Scope = "module" )]
[assembly: SuppressMessage( "Reliability", "CA2007:Consider calling ConfigureAwait on the awaited task", Justification = "<Pending>", Scope = "module" )]
[assembly: SuppressMessage( "Performance", "CA1812:An internal (assembly-level) type is never instantiated.", Justification = "This class is instantiated via DI.", Scope = "module" )]
[assembly: SuppressMessage( "Maintainability", "CA1515:Consider making public types internal", Justification = "<Pending>", Scope = "module" )]
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@

[assembly: SuppressMessage( "Naming", "CA1707:Identifiers should not contain underscores", Justification = "<Pending>", Scope = "module" )]
[assembly: SuppressMessage( "Reliability", "CA2007:Consider calling ConfigureAwait on the awaited task", Justification = "<Pending>", Scope = "module" )]
[assembly: SuppressMessage( "Maintainability", "CA1515:Consider making public types internal", Justification = "<Pending>", Scope = "module" )]
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@

[assembly: SuppressMessage( "Naming", "CA1707:Identifiers should not contain underscores", Justification = "<Pending>", Scope = "module" )]
[assembly: SuppressMessage( "Reliability", "CA2007:Consider calling ConfigureAwait on the awaited task", Justification = "<Pending>", Scope = "module" )]
[assembly: SuppressMessage( "Maintainability", "CA1515:Consider making public types internal", Justification = "<Pending>", Scope = "module" )]
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.

using System.Diagnostics.CodeAnalysis;

[assembly: SuppressMessage( "Naming", "CA1707:Identifiers should not contain underscores", Justification = "<Pending>", Scope = "module" )]
[assembly: SuppressMessage( "Reliability", "CA2007:Consider calling ConfigureAwait on the awaited task", Justification = "<Pending>", Scope = "module" )]
[assembly: SuppressMessage( "Maintainability", "CA1515:Consider making public types internal", Justification = "<Pending>", Scope = "module" )]
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@

[assembly: SuppressMessage( "Naming", "CA1707:Identifiers should not contain underscores", Justification = "<Pending>", Scope = "module" )]
[assembly: SuppressMessage( "Reliability", "CA2007:Consider calling ConfigureAwait on the awaited task", Justification = "<Pending>", Scope = "module" )]
[assembly: SuppressMessage( "Maintainability", "CA1515:Consider making public types internal", Justification = "<Pending>", Scope = "module" )]
11 changes: 11 additions & 0 deletions test/TestHelpers/IBufferWriter.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using Kiyote.Buffers;

namespace TestHelpers;

public interface IBufferWriter<T> {

Task WriteAsync(
IBuffer<T> buffer
);

}