Comments (8)
Refactored some uses in the commits shown above. 8 instances left.
from modbat.
For cases with deeply nested method calls, exceptions would be a better way of propagating error codes (as that would not require inserting "return" statements everywhere).
from modbat.
I'll review the earlier changes w.r.t. that and convert return statements to exceptions if appropriate, and will then move on to the forked repo.
from modbat.
Something was not done so well (my mistake...); check issue #45.
from modbat.
Existing changes to change again (to use exceptions):
14c1fe8
- ConfigMgr.scala: main
- ConfigMgr.scala: parseArgs incl. return type
- Main.main: use of parseArgs
03899e8
Already modified.
Remaining uses of System.exit
from modbat.
Return codes left: ConfigMgr.scala (both 0 and 1): replace "return 1" with exception, remove "return 0", and make "run" have no return parameters; Main.scala: replace "return 1" with exceptions.
from modbat.
System.exit: a couple left; try:
find . -name '*.scala' | xargs grep 'System.exit'
from modbat.
Remaining open points:
- Modbat.explore should not have return code
- Main.run should not have return code
- Main.main should not not use return code of run (perhaps pending in a current PR?)
from modbat.
Related Issues (20)
- Provide application task with --args for Modbat
- Gradle task/jar cleanup
- Action.nonDetExc should be refactored from a tuple into a small class HOT 4
- Action.nextStatePred should be refactored from a tuple into a small class
- Rename "nextState" to "transToNextState" in case it is not of type State HOT 7
- Heuristic search options are not checking if "search=heur" HOT 2
- Report invalid "dot-dir" nicely when trying to report edge pair coverage
- Minor incompatibility with Eclipse JDK 11
- allSuccessors should probably return a list rather than array of successors
- total weight of all choices does not necessarily have to be computed outside where it is used HOT 1
- Observers do not seem to be included in path coverage
- Execute shutdown handler functionality in failing unit tests HOT 2
- Also remove terminal escape sequences for ConfigTest HOT 1
- `init` does not initialize/clear all data structures HOT 1
- Debug/line number info: Migrate from bytecode parsing to "sourcecode" library HOT 5
- Duplicate class files modbat-examples.jar and modbat-test.jar; missing sources in examples HOT 1
- Use Modbat with PiTest HOT 4
- Akka Actor not included as dependency HOT 1
- Bug in Java 11 prevents full compatibility, produces failing tests HOT 1
- Logging in Modbat needs configurable streams as targets, no global vars HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from modbat.