-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Shubham Chaturvedi
committed
Oct 21, 2024
1 parent
d874f1b
commit fa6b4c6
Showing
14 changed files
with
718 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
TestModels/Extern/runtimes/go/ImplementationFromDafny-go/SimpleExternImpl/extern.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package SimpleExternImpl | ||
|
||
import ( | ||
"github.com/dafny-lang/DafnyRuntimeGo/v4/dafny" | ||
"github.com/dafny-lang/DafnyStandardLibGo/Wrappers" | ||
"github.com/smithy-lang/smithy-dafny/TestModels/Extern/SimpleDafnyExternTypes" | ||
) | ||
|
||
func (CompanionStruct_Default___) GetExtern(c Config, input SimpleDafnyExternTypes.GetExternInput) Wrappers.Result { | ||
return Wrappers.Companion_Result_.Create_Success_(SimpleDafnyExternTypes.Companion_GetExternOutput_.Create_GetExternOutput_(input.Dtor_blobValue(), | ||
input.Dtor_booleanValue(), | ||
input.Dtor_stringValue(), | ||
input.Dtor_integerValue(), | ||
input.Dtor_longValue())) | ||
|
||
} | ||
func (CompanionStruct_Default___) ExternMustError(c Config, input SimpleDafnyExternTypes.ExternMustErrorInput) Wrappers.Result { | ||
return Wrappers.Companion_Result_.Create_Failure_( | ||
SimpleDafnyExternTypes.Companion_Error_.Create_Opaque_( | ||
input.Dtor_value(), dafny.SeqOfChars([]dafny.Char("ExceptionMessage")...))) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
217 changes: 0 additions & 217 deletions
217
TestModels/Extern/runtimes/go/SimpleExternImpl/SimpleExternImpl.go
This file was deleted.
Oops, something went wrong.
53 changes: 53 additions & 0 deletions
53
TestModels/Extern/runtimes/go/TestsFromDafny-go/WrappedSimpleExternService/shim.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.