Skip to content

squidarth/scala-mocking-library

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

A Mock Library in Scala

This is mock library that I wrote in Scala to

See src/main/scala/Mock.scala for the bulk of the code, and src/main/scala/Main.scala for example usage

Dependencies

Running this requires having sbt installed.

Running the code

Run sbt first. Once in the sbt console, use run to actually run the code we have here.

A quirk of how macros work is that if you modify the macro code, you need to comment out usages of it first, run the code, and then uncomment the usages to run the code properly. Otherwise, you will see an error like:

[error] /home/sid/src/scala_testing_stuff/testmocks/src/main/scala/Main.scala:14:20: macro implementation not found: mock
[error] (the most common reason for that is that you cannot use macro implementations in the same compilation run that defines them)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages