Skip to content

Commit dafea6a

Browse files
committed
Cosmetic file reshuffle
1 parent bd64caa commit dafea6a

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

lambda-buffers-compiler/lambda-buffers-compiler.cabal

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,9 @@ test-suite tests
173173
Test.KindCheck.Errors
174174
Test.LambdaBuffers.Compiler
175175
Test.LambdaBuffers.Compiler.Coverage
176-
Test.LambdaBuffers.Compiler.Gen
177-
Test.LambdaBuffers.Compiler.Gen.Mutation
178-
Test.LambdaBuffers.Compiler.Gen.Utils
176+
Test.LambdaBuffers.Compiler.Mutation
177+
Test.LambdaBuffers.Compiler.Utils
178+
Test.LambdaBuffers.Compiler.WellFormed
179179
Test.TypeClassCheck
180180
Test.Utils.CompilerInput
181181
Test.Utils.Constructors

lambda-buffers-compiler/test/Test/LambdaBuffers/Compiler.hs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import LambdaBuffers.Compiler (runCompiler)
88
import Proto.Compiler (CompilerOutput)
99
import Proto.Compiler_Fields (compilerResult)
1010
import Test.LambdaBuffers.Compiler.Coverage (coverage)
11-
import Test.LambdaBuffers.Compiler.Gen (genCompilerInput)
12-
import Test.LambdaBuffers.Compiler.Gen.Mutation qualified as Mut
11+
import Test.LambdaBuffers.Compiler.Mutation qualified as Mut
12+
import Test.LambdaBuffers.Compiler.WellFormed (genCompilerInput)
1313
import Test.Tasty (TestTree, testGroup)
1414
import Test.Tasty.HUnit (HasCallStack)
1515
import Test.Tasty.Hedgehog (testProperty)
@@ -18,27 +18,27 @@ test :: TestTree
1818
test =
1919
testGroup
2020
"Compiler API tests"
21-
[ allCorrectCompInpCompile
22-
, allCorrectCompInpCompileAfterBenignMut
21+
[ allWellFormedCompInpCompile
22+
, allWellFormedCompInpCompileAfterBenignMut
2323
]
2424

2525
compilationOk :: H.MonadTest m => CompilerOutput -> m ()
2626
compilationOk compOut = compOut H.=== (defMessage & compilerResult .~ defMessage)
2727

28-
allCorrectCompInpCompile :: HasCallStack => TestTree
29-
allCorrectCompInpCompile =
28+
allWellFormedCompInpCompile :: HasCallStack => TestTree
29+
allWellFormedCompInpCompile =
3030
testProperty
31-
"All correct CompilerInputs must compile"
31+
"All well formed CompilerInputs must compile"
3232
( H.property $ do
3333
compInp <- H.forAll genCompilerInput
3434
coverage compInp
3535
compilationOk . runCompiler $ compInp
3636
)
3737

38-
allCorrectCompInpCompileAfterBenignMut :: HasCallStack => TestTree
39-
allCorrectCompInpCompileAfterBenignMut =
38+
allWellFormedCompInpCompileAfterBenignMut :: HasCallStack => TestTree
39+
allWellFormedCompInpCompileAfterBenignMut =
4040
testProperty
41-
"All correct CompilerInputs must compile after a benign mutation"
41+
"All well formed CompilerInputs must compile after a benign mutation"
4242
$ H.property
4343
$ do
4444
compInp <- H.forAll genCompilerInput

lambda-buffers-compiler/test/Test/LambdaBuffers/Compiler/Gen/Mutation.hs renamed to lambda-buffers-compiler/test/Test/LambdaBuffers/Compiler/Mutation.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module Test.LambdaBuffers.Compiler.Gen.Mutation (shuffleModules, shuffleTyDefs, Mutation (..)) where
1+
module Test.LambdaBuffers.Compiler.Mutation (shuffleModules, shuffleTyDefs, Mutation (..)) where
22

33
import Control.Lens ((&), (.~), (^.))
44
import Data.List.NonEmpty (nonEmpty)
@@ -9,7 +9,7 @@ import Hedgehog qualified as H
99
import Hedgehog.Gen qualified as H
1010
import Proto.Compiler (CompilerError, CompilerInput, CompilerOutput, CompilerOutput'CompilerOutput (CompilerOutput'CompilerError, CompilerOutput'CompilerResult), CompilerResult)
1111
import Proto.Compiler_Fields (maybe'compilerOutput, modules, typeDefs)
12-
import Test.LambdaBuffers.Compiler.Gen.Utils (pick)
12+
import Test.LambdaBuffers.Compiler.Utils (pick)
1313
import Test.Tasty (TestName)
1414

1515
data Mutation m = MkMutation

lambda-buffers-compiler/test/Test/LambdaBuffers/Compiler/Gen/Utils.hs renamed to lambda-buffers-compiler/test/Test/LambdaBuffers/Compiler/Utils.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module Test.LambdaBuffers.Compiler.Gen.Utils (distribute, partition, indexBy, pick) where
1+
module Test.LambdaBuffers.Compiler.Utils (distribute, partition, indexBy, pick) where
22

33
import Control.Monad (foldM)
44
import Data.Foldable (Foldable (toList))

lambda-buffers-compiler/test/Test/LambdaBuffers/Compiler/Gen.hs renamed to lambda-buffers-compiler/test/Test/LambdaBuffers/Compiler/WellFormed.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module Test.LambdaBuffers.Compiler.Gen (genCompilerInput) where
1+
module Test.LambdaBuffers.Compiler.WellFormed (genCompilerInput) where
22

33
import Control.Lens ((&), (.~), (^.))
44
import Control.Monad (foldM)
@@ -23,7 +23,7 @@ import Hedgehog.Range qualified as HR
2323
import Proto.Compiler (ClassName, CompilerInput, ConstrName, Kind, Kind'KindRef (Kind'KIND_REF_TYPE), Module, ModuleName, ModuleNamePart, SourceInfo, Sum, Sum'Constructor, Ty, TyAbs, TyArg, TyBody, TyDef, TyName, VarName)
2424
import Proto.Compiler_Fields (argKind, argName, column, constrName, constructors, fields, file, foreignTyRef, kindArrow, kindRef, left, localTyRef, moduleName, modules, name, ntuple, parts, posFrom, posTo, right, row, sourceInfo, tyAbs, tyApp, tyArgs, tyBody, tyFunc, tyName, tyRef, tyVar, typeDefs, varName)
2525
import Proto.Compiler_Fields qualified as P
26-
import Test.LambdaBuffers.Compiler.Gen.Utils (distribute, indexBy)
26+
import Test.LambdaBuffers.Compiler.Utils (distribute, indexBy)
2727

2828
-- | Upper bound on various generators
2929
limit :: Int

0 commit comments

Comments
 (0)