Skip to content

Commit

Permalink
doc(uml): class diagram for recommended use case
Browse files Browse the repository at this point in the history
  • Loading branch information
rouson committed Jan 2, 2025
1 parent efdb7ac commit ba600c8
Showing 1 changed file with 28 additions and 15 deletions.
43 changes: 28 additions & 15 deletions doc/uml/class-diagram.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,37 @@ Julienne Unit Testing Classes
```mermaid
classDiagram
class string_t
class test_t
class test_result_t
class test_description_t
class test_diagnosis_t
class vector_test_description_t
test_t --> test_result_t : produces
test_description_t --> test_diagnosis_t : "uses to construct test_result_t"
test_result_t --> test_diagnosis_t : "accepts as constructor argument"
class test_t{
<<abstract>>
+ subject() character
+ results() test_result_t
+ report()
+ subject() character *
+ results() test_result_t *
+ report(passes : integer, tests : integer)
}
class vector_test_description_t{
<<abstract>>
- description_vector_ : string_t
- vector_function_strategy_ : vector_function_strategy_t
+ vector_function() string_t
class test_result_t{
- description_ : character
- diagnostics_ : character
- passed : logical
+ test_result_t(description : character, passed : test_diagnosis_t) test_result_t
+ characterize() : character
+ description_contains(character) : logical
+ passed() : logical
}
vector_test_description_t o-- string_t
class test_diagnosis_t{
- test_passed_ : logical
- diagnostics_string_ : character
+ test_diagnosis_t(test_passed : logical, diagnostics_string : character) test_diagnosis_t
}
class test_description_t{
- description_ : character
- diagnosis_function : procecure(diagnosis_function_i), pointer
+ test_description_t(description : character, diagnosis_function : procedure(diagnosis_function_i))
+ run() test_result_t
+ contains_text(character) logical
}

0 comments on commit ba600c8

Please sign in to comment.