|
| 1 | +""" |
| 2 | +The ``cpp_dir_underscores`` test project. |
| 3 | +
|
| 4 | +It primarily exists to make sure directories with underscores in their titles |
| 5 | +get the correct link and title names (since exhale uses underscores internally). |
| 6 | +""" |
| 7 | + |
| 8 | +from testing.hierarchies import clike, directory, file, namespace |
| 9 | + |
| 10 | + |
| 11 | +def default_class_hierarchy_dict(): |
| 12 | + """Return the default class hierarchy dictionar.""" |
| 13 | + return { |
| 14 | + namespace("interface_alpha"): { |
| 15 | + clike("struct", "Alpha"): {}, |
| 16 | + namespace("one_two_three"): { |
| 17 | + clike("struct", "OneTwoThree"): {}, |
| 18 | + }, |
| 19 | + namespace("four_five_six"): { |
| 20 | + clike("struct", "FourFiveSix"): {} |
| 21 | + } |
| 22 | + }, |
| 23 | + namespace("interface_beta"): { |
| 24 | + clike("struct", "Beta"): {} |
| 25 | + } |
| 26 | + } |
| 27 | + |
| 28 | + |
| 29 | +def default_file_hierarchy_dict(): |
| 30 | + """Return the default file hierarchy dictionary.""" |
| 31 | + return { |
| 32 | + directory("include"): { |
| 33 | + directory("interface_alpha"): { |
| 34 | + file("alpha.hpp"): { |
| 35 | + namespace("interface_alpha"): { |
| 36 | + clike("struct", "Alpha"): {}, |
| 37 | + } |
| 38 | + }, |
| 39 | + directory("one_two_three"): { |
| 40 | + file("one_two_three.hpp"): { |
| 41 | + namespace("interface_alpha"): { |
| 42 | + namespace("one_two_three"): { |
| 43 | + clike("struct", "OneTwoThree"): {}, |
| 44 | + } |
| 45 | + } |
| 46 | + }, |
| 47 | + }, |
| 48 | + directory("__four_five_six__"): { |
| 49 | + file("__four_five_six__.hpp"): { |
| 50 | + namespace("interface_alpha"): { |
| 51 | + namespace("four_five_six"): { |
| 52 | + clike("struct", "FourFiveSix"): {} |
| 53 | + } |
| 54 | + } |
| 55 | + } |
| 56 | + } |
| 57 | + }, |
| 58 | + directory("interface_beta"): { |
| 59 | + file("beta.hpp"): { |
| 60 | + namespace("interface_beta"): { |
| 61 | + clike("struct", "Beta"): {} |
| 62 | + } |
| 63 | + } |
| 64 | + } |
| 65 | + } |
| 66 | + } |
0 commit comments