Add tests (#60)

This commit is contained in:
Patrick Stevens
2023-08-06 21:23:21 +01:00
committed by GitHub
parent 6f1fbeb6ee
commit 3a975d7f28
11 changed files with 428 additions and 27 deletions

View File

@@ -0,0 +1,10 @@
namespace Gitea.Declarative
open System.Runtime.ExceptionServices
[<RequireQualifiedAccess>]
module internal Exception =
let reraiseWithOriginalStackTrace<'a> (e : exn) : 'a =
let edi = ExceptionDispatchInfo.Capture e
edi.Throw ()
failwith "unreachable"

View File

@@ -19,6 +19,7 @@
<ItemGroup>
<Compile Include="AssemblyInfo.fs" />
<Compile Include="Map.fs" />
<Compile Include="Exception.fs" />
<Compile Include="Async.fs" />
<Compile Include="GiteaClient.fs" />
<Compile Include="IGiteaClient.fs" />