File: doxygen_basic_notranslate_runme.java

package info (click to toggle)
swig 4.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 42,876 kB
  • sloc: cpp: 61,013; ansic: 27,612; java: 14,670; python: 10,632; cs: 8,103; makefile: 6,287; yacc: 6,197; sh: 5,247; ruby: 5,172; perl: 3,541; php: 2,069; ml: 2,066; lisp: 1,894; javascript: 1,300; tcl: 1,091; xml: 115
file content (94 lines) | stat: -rw-r--r-- 3,358 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94

import doxygen_basic_notranslate.*;
import java.util.HashMap;

public class doxygen_basic_notranslate_runme {
  static {
    try {
      System.loadLibrary("doxygen_basic_notranslate");
    } catch (UnsatisfiedLinkError e) {
      System.err.println("Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentation for help.\n" + e);
      System.exit(1);
    }
  }
  
  public static void main(String argv[]) 
  {
    CommentParser.parse("doxygen_basic_notranslate");

    HashMap<String, String> wantedComments = new HashMap<String, String>();
    wantedComments.put("doxygen_basic_notranslate.doxygen_basic_notranslate.function3(int)",
    		" \n" +
    		"  A test for overloaded functions\n" +
    		"  This is function \\b one\n" +
    		"  \n" +
    		"");
    wantedComments.put("doxygen_basic_notranslate.doxygen_basic_notranslate.function4()",
    		" \n" +
    		"  A test of some mixed tag usage\n" +
    		"  \\if CONDITION\n" +
    		"  This \\a code fragment shows us something \\.\n" +
    		"  \\par Minuses:\n" +
    		"  \\arg it's senseless\n" +
    		"  \\arg it's stupid\n" +
    		"  \\arg it's null\n" +
    		" \n" +
    		"  \\warning This may not work as expected\n" +
    		" \n" +
    		"  \\code\n" +
    		"  int main() { while(true); }\n" +
    		"  \\endcode\n" +
    		"  \\endif\n" +
    		"  \n" +
    		"");
    wantedComments.put("doxygen_basic_notranslate.doxygen_basic_notranslate.function()",
    		" \n" +
    		"  \\brief\n" +
    		"  Brief description.\n" +
    		"  \n" +
    		"  The comment text\n" +
    		"  \\author Some author\n" +
    		"  \\return Some number\n" +
    		"  \\sa function2\n" +
    		"  \n" +
    		"");
    wantedComments.put("doxygen_basic_notranslate.doxygen_basic_notranslate.function5(int)",
    		"  This is a post comment. ");
    wantedComments.put("doxygen_basic_notranslate.doxygen_basic_notranslate.function7(doxygen_basic_notranslate.SWIGTYPE_p_p_p_Shape)",
    		" \n" +
    		"  Test for a parameter with difficult type\n" +
    		"  (mostly for python)\n" +
    		"  @param a Very strange param\n" +
    		"  \n" +
    		"");
    wantedComments.put("doxygen_basic_notranslate.doxygen_basic_notranslate.function3(int, int)",
    		" \n" +
    		"  A test for overloaded functions\n" +
    		"  This is function \\b two\n" +
    		"  \n" +
    		"");
    wantedComments.put("doxygen_basic_notranslate.doxygen_basic_notranslate.function6(int)",
    		" \n" +
    		"  Test for default args\n" +
    		"  @param a Some parameter, default is 42\n" +
    		"  \n" +
    		"");
    wantedComments.put("doxygen_basic_notranslate.doxygen_basic_notranslate.function6()",
    		" \n" +
    		"  Test for default args\n" +
    		"  @param a Some parameter, default is 42\n" +
    		"  \n" +
    		"");
    wantedComments.put("doxygen_basic_notranslate.doxygen_basic_notranslate.function1()",
    		"  Single line comment ");
    wantedComments.put("doxygen_basic_notranslate.doxygen_basic_notranslate.function2()",
    		" \n" +
    		"  A test of a very very very very very very very very very very very very very very very very\n" +
    		"  very very very very very long comment string.\n" +
    		"  \n" +
    		"");
    
    // and ask the parser to check comments for us
    System.exit(CommentParser.check(wantedComments));
  }
}