From 30cceb7910f389fbb37557382d2f5e212ec4b7e2 Mon Sep 17 00:00:00 2001 From: fanghr Date: Sat, 7 May 2022 17:36:33 +0800 Subject: [PATCH] add templates of tests and samples --- agora-sample/Sample/Effect/GovernorMutation.hs | 1 + agora-test/Spec.hs | 4 ++++ agora-test/Spec/Effect/GovernorMutation.hs | 6 ++++++ agora.cabal | 2 ++ 4 files changed, 13 insertions(+) create mode 100644 agora-sample/Sample/Effect/GovernorMutation.hs create mode 100644 agora-test/Spec/Effect/GovernorMutation.hs diff --git a/agora-sample/Sample/Effect/GovernorMutation.hs b/agora-sample/Sample/Effect/GovernorMutation.hs new file mode 100644 index 0000000..d369707 --- /dev/null +++ b/agora-sample/Sample/Effect/GovernorMutation.hs @@ -0,0 +1 @@ +module Sample.Effect.GovernorMutation () where diff --git a/agora-test/Spec.hs b/agora-test/Spec.hs index d2c90f7..2d97c1e 100644 --- a/agora-test/Spec.hs +++ b/agora-test/Spec.hs @@ -7,6 +7,7 @@ import Test.Tasty (defaultMain, testGroup) -------------------------------------------------------------------------------- import Spec.AuthorityToken qualified as AuthorityToken +import Spec.Effect.GovernorMutation qualified as GovernorMutation import Spec.Effect.TreasuryWithdrawal qualified as TreasuryWithdrawal import Spec.Governor qualified as Governor import Spec.Model.MultiSig qualified as MultiSig @@ -26,6 +27,9 @@ main = [ testGroup "Treasury Withdrawal Effect" TreasuryWithdrawal.tests + , testGroup + "Governor Mutation Effect" + GovernorMutation.tests ] , testGroup "Stake tests" diff --git a/agora-test/Spec/Effect/GovernorMutation.hs b/agora-test/Spec/Effect/GovernorMutation.hs new file mode 100644 index 0000000..7863cb6 --- /dev/null +++ b/agora-test/Spec/Effect/GovernorMutation.hs @@ -0,0 +1,6 @@ +module Spec.Effect.GovernorMutation (tests) where + +import Test.Tasty (TestTree) + +tests :: [TestTree] +tests = [] diff --git a/agora.cabal b/agora.cabal index b3005cc..88f32f0 100644 --- a/agora.cabal +++ b/agora.cabal @@ -167,6 +167,7 @@ library agora-sample import: lang, deps, test-deps build-depends: agora-testlib exposed-modules: + Sample.Effect.GovernorMutation Sample.Effect.TreasuryWithdrawal Sample.Governor Sample.Proposal @@ -183,6 +184,7 @@ test-suite agora-test hs-source-dirs: agora-test other-modules: Spec.AuthorityToken + Spec.Effect.GovernorMutation Spec.Effect.TreasuryWithdrawal Spec.Governor Spec.Model.MultiSig