-
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.
Write requirements to specify the behavior of `lobster-json` if input files or directories are specified by the user.
- Loading branch information
Showing
3 changed files
with
54 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package json_req | ||
import req | ||
|
||
req.Definition JSON_Input_File { | ||
description = ''' | ||
Each file with the file name extension json is a valid input file. | ||
''' | ||
} | ||
|
||
req.Definition File_Scanning { | ||
description = ''' | ||
The term "scanning an input file" means that the tool | ||
1. searches for JSON elements in it according to the configuration provided by | ||
the user, | ||
2. and serializes these elements in LOBSTER interchange format to the desired | ||
output. | ||
|
||
Note: | ||
It is possible to write a system test to verify that the tool is scanning a file | ||
in the following way: | ||
1. Define a set of valid input files containing valid elements. | ||
2. Run the tool. | ||
3. Verify that the resulting output contains (exactly) all of the input elements. | ||
''' | ||
} | ||
|
||
req.Definition Directory_Scanning { | ||
description = ''' | ||
The term "scanning a directory" means that the tool scans each file inside that directory | ||
according to [[File_Scanning]], if it is a JSON file according to [[JSON_Input_File]]. | ||
''' | ||
} | ||
|
||
req.System_Requirement Directory_Input { | ||
description = ''' | ||
If a list element given through the command line option FILE_OR_DIR is a directory, | ||
then that directory and recursively all subdirectories shall be scanned | ||
according to [[Directory_Scanning]]. | ||
''' | ||
} |
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