TP 4A 2020-21: Text generator with Markov's chains
Questions
Fork this github repository (2 points)
Run the project
Comment the 3 classes: MarkovApp, MarkovChain & MarkovData (3 points)
Commit your changes and check-it into github
On github, make a pull request (1 point)
Complete the next section: "Analyze IADT functions" into this file (2 points)
Commit your changes (commit README.md)
On github, update your pull request (1 point)
Make tests defined into section: "Functions to test now" (call your test functions using the rule: GIVEN_WHEN_THEN) (10 points)
Check the test coverage with the Jacoco coverage report provided into: /target/site/jacoco/index.html
Commit your changes
On github, update your pull request (1 point)
that ends
Analyze IADT functions
Hereafter, for each classes give function to be tested. Remember that all functions does not have to be tested, some code can be checked by a simple inspection or an analyse, another code can be validated by definition (rules, etc) the others function can be tecsted by unit tests, integration tests or validation tests (IADT: Inspect, Analyse, Define, Test).
Class app.MarkovApp
Function
I A D T
Comment
main
D
Pas besoin de tester la fonction main
readFileAsString
D
Utilisation de bibliotheque deja teste
Class markov.MarkovChain
Function
I A D T
Comment
MarkovChain
D
Pas besoin de teser ce constructeur
generateMarkov
T
learn
T
On regardera Data
setRgen
D
Utilisation de fonction de generation aleatoir d'une autre bibliotheque deja teste