Prev | Current Page 327 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"


If you find the generator too restrictive or you want to tweak something, you can change or better extend
the files contained in the std/tools/haxedoc . You will discover that the two haxedoc versions
described so far are in reality exactly the same application with the only difference that the offline
generator has been embedded in an .exe using the following command:
nekotools boot haxedoc.n
The file that contains the procedures to write the HTML documents is HtmlPrinter.hx . The whole
document generation is provided using the RunTime Type Information (RTTI) facilities implemented in
the haXe standard library. To know more about RTTI, consult Chapter 16 .
Unit Testing
In information technology, Unit Testing is the practice to validate atomic portions of code; the smaller the
portion the better it is. A unit in OOP usually refers to a class where at least one test is written for each of
the class public methods. Nevertheless, what is a test in practice? A test is a single function that performs
a single action and checks that the performed action has provided the expected results.


Pages:
315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339