@ -180,69 +180,66 @@ let test_from_json_string_with_valid_input =
[ ( " label1 "
[ ( " label1 "
, Procname . Set . of_list
, Procname . Set . of_list
[ Procname . (
[ Procname . (
J ava
make_j ava
(Java . make
~class_name : ( Typ . Name . Java . from_string " lll.mmm.Nnn " )
( Typ . Name . Java . from_string " lll.mmm.Nnn " )
~ return_type : None ~ method_name : Java . constructor_method_name
None " <init> "
~ parameters :
[ mk_split ( Some " java.lang " , " String " )
[ mk_split ( Some " java.lang " , " String " )
; mk_split ( None , " int[] " )
; mk_split ( None , " int[] " )
; mk_split ( None , " long " ) ]
; mk_split ( None , " long " ) ]
Java . Non_Static ))
~ kind : Java . Non_Static ( ))
; Procname . (
; Procname . (
J ava
make_j ava
(Java . make
~class_name : ( Typ . Name . Java . from_string " ggg.hhh.Iii " )
( Typ . Name . Java . from_string " ggg.hhh.Iii " )
~ return_type : None ~ method_name : Java . class_initializer_method_name
None " <clinit> "
~ parameters :
[ mk_split ( Some " java.lang " , " String " )
[ mk_split ( Some " java.lang " , " String " )
; mk_split ( None , " int[] " )
; mk_split ( None , " int[] " )
; mk_split ( None , " long " ) ]
; mk_split ( None , " long " ) ]
Java . Non_Static )) ] )
~ kind : Java . Non_Static ( )) ] )
; ( " label2 "
; ( " label2 "
, Procname . Set . of_list
, Procname . Set . of_list
[ Procname . (
[ Procname . (
J ava
make_j ava
(Java . make
~class_name : ( Typ . Name . Java . from_string " ddd.eee.Fff " )
( Typ . Name . Java . from_string " ddd.eee.Fff " )
~ return_type : ( Some ( mk_split ( None , " char[][] " ) ) )
( Some ( mk_split ( None , " char[][] " ) ) )
~ method_name : " methodTwo "
" methodTwo "
~ parameters :
[ mk_split ( Some " java.lang " , " String " )
[ mk_split ( Some " java.lang " , " String " )
; mk_split ( None , " int[] " )
; mk_split ( None , " int[] " )
; mk_split ( None , " long " ) ]
; mk_split ( None , " long " ) ]
Java . Non_Static ))
~ kind : Java . Non_Static ( ))
; Procname . (
; Procname . (
Java
make_java
( Java . make
~ class_name : ( Typ . Name . Java . from_string " aaa.bbb.Ccc " )
( Typ . Name . Java . from_string " aaa.bbb.Ccc " )
~ return_type : ( Some ( mk_split ( None , " void " ) ) )
( Some ( mk_split ( None , " void " ) ) )
~ method_name : " methodOne " ~ parameters : [] ~ kind : Java . Non_Static () ) ] ) ]
" methodOne " [] Java . Non_Static ) ) ] ) ]
in
in
let expected3 =
let expected3 =
[ ( " label1 "
[ ( " label1 "
, Procname . Set . of_list
, Procname . Set . of_list
[ Procname . (
[ Procname . (
J ava
make_j ava
(Java . make
~class_name : ( Typ . Name . Java . from_string " lll.mmm.Nnn " )
( Typ . Name . Java . from_string " lll.mmm.Nnn " )
~ return_type : None ~ method_name : Java . constructor_method_name ~ parameters : []
None " <init> " [] Java . Non_Static ))
~ kind : Java . Non_Static ( ))
; Procname . (
; Procname . (
J ava
make_j ava
(Java . make
~class_name : ( Typ . Name . Java . from_string " ggg.hhh.Iii " )
( Typ . Name . Java . from_string " ggg.hhh.Iii " )
~ return_type : None ~ method_name : Java . class_initializer_method_name ~ parameters : []
None " <clinit> " [] Java . Non_Static )) ] )
~ kind : Java . Non_Static ( )) ] )
; ( " label2 "
; ( " label2 "
, Procname . Set . of_list
, Procname . Set . of_list
[ Procname . (
[ Procname . (
Java
make_java
( Java . make
~ class_name : ( Typ . Name . Java . from_string " ddd.eee.Fff " )
( Typ . Name . Java . from_string " ddd.eee.Fff " )
~ return_type : ( Some ( mk_split ( None , " void " ) ) )
( Some ( mk_split ( None , " void " ) ) )
~ method_name : " methodTwo " ~ parameters : [] ~ kind : Java . Non_Static () )
" methodTwo " [] Java . Non_Static ) )
; Procname . (
; Procname . (
Java
make_java
( Java . make
~ class_name : ( Typ . Name . Java . from_string " aaa.bbb.Ccc " )
( Typ . Name . Java . from_string " aaa.bbb.Ccc " )
~ return_type : ( Some ( mk_split ( None , " void " ) ) )
( Some ( mk_split ( None , " void " ) ) )
~ method_name : " methodOne " ~ parameters : [] ~ kind : Java . Non_Static () ) ] ) ]
" methodOne " [] Java . Non_Static ) ) ] ) ]
in
in
[ ( " test_from_json_string_1 " , input1 , expected1 , true )
[ ( " test_from_json_string_1 " , input1 , expected1 , true )
; ( " test_from_json_string_2 " , input2 , expected2 , true )
; ( " test_from_json_string_2 " , input2 , expected2 , true )