lib-test_templ-2_1.mpad 52.7 KB
Newer Older
1
2
3
4
-- =============================================================================
-- Copyright (C) 2003-2020 Tecgraf/PUC-Rio, PETROBRAS S/A
-- Instituto Tecgraf <mpa@tecgraf.puc-rio.br>
-- Arquivo gerado pelo programa MPA
5
-- Verso:  6.4
6
-- Arquivo: lib-test_templ.mpad
7
-- Data:    11/03/2021 14:57:30
8
9
10
-- =============================================================================

MPA_5_0 = true
11
12
13
EXPANDED = {
  true,
}
14
15
16
17
18
DisabledDiagrams = {
}

Diagrams = {
  {
19
20
    id = "TST-TEMPL: Mtodo Alpha",
    name = "TST-TEMPL: Mtodo Alpha",
21
22
23
24
    kind = "Flow",
    description = nil,
    isApplication = false,
    globals = {
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
      {
        name = "tst_templ_a",
        type = "tst_classe_template",
        list = false,
        value = "tst-InstTempl",
        comment = nil,
        is_arg = nil,
        is_ret = nil,
      },
      {
        name = "tst_templ_b",
        type = "tst_classe_template",
        list = false,
        value = "tst-InstTemplOpt",
        comment = nil,
        is_arg = nil,
        is_ret = nil,
      },
43
44
45
46
47
48
    },
    errorFunction = nil,
    haltDiagram = nil,
    Nodes = {
      {
        type = "Command",
49
        description = nil,
50
        action = {
51
          _switch = "DIAGRAMCALL",
52
53
54
          beforemsg = nil,
          aftermsg = nil,
          expressions = {
55
            "tst_templ_a",
56
          },
57
58
59
          variables = {},
          diagramid = "{TST-TEMPL/alpha: Casos de Teste}",
          operation = "call",
60
        },
61
62
63
64
        xmin = 4720,
        ymin = 5300,
        xmax = 5200,
        ymax = 5420,
65
66
67
      },
      {
        type = "Command",
68
        description = nil,
69
        action = {
70
          _switch = "DIAGRAMCALL",
71
72
73
          beforemsg = nil,
          aftermsg = nil,
          expressions = {
74
            "tst_templ_b",
75
          },
76
77
78
          variables = {},
          diagramid = "{TST-TEMPL/alpha: Casos de Teste}",
          operation = "call",
79
        },
80
81
82
83
        xmin = 4720,
        ymin = 5100,
        xmax = 5200,
        ymax = 5220,
84
      },
85
86
    },
    Links = {
87
      {
88
89
90
91
92
93
94
95
96
97
98
        type = "Link",
        description = nil,
        from = nil,
        to = 1,
        x = {
          4620,
          4960,
        },
        y = {
          5360,
          5360,
99
100
101
        },
      },
      {
102
103
104
105
106
107
108
109
110
111
112
        type = "Link",
        description = nil,
        from = 1,
        to = 2,
        x = {
          4960,
          4960,
        },
        y = {
          5360,
          5160,
113
114
        },
      },
115
116
117
118
119
120
121
122
123
124
125
126
127
    },
    Areas = {
    },
    Hidden = {
    },
  },
  {
    id = "TST-TEMPL: Mtodo Beta",
    name = "TST-TEMPL: Mtodo Beta",
    kind = "Flow",
    description = nil,
    isApplication = false,
    globals = {
128
      {
129
130
131
132
133
134
135
        name = "tst_templ_a",
        type = "tst_classe_template",
        list = false,
        value = "tst-InstTempl",
        comment = nil,
        is_arg = nil,
        is_ret = nil,
136
137
      },
      {
138
139
140
141
142
143
144
        name = "tst_templ_b",
        type = "tst_classe_template",
        list = false,
        value = "tst-InstTemplOpt",
        comment = nil,
        is_arg = nil,
        is_ret = nil,
145
      },
146
147
148
149
    },
    errorFunction = nil,
    haltDiagram = nil,
    Nodes = {
150
151
      {
        type = "Command",
152
        description = nil,
153
        action = {
154
          _switch = "DIAGRAMCALL",
155
156
157
          beforemsg = nil,
          aftermsg = nil,
          expressions = {
158
            "tst_templ_b",
159
          },
160
161
162
          variables = {},
          diagramid = "{TST-TEMPL/beta: Casos de Teste}",
          operation = "call",
163
        },
164
165
166
167
        xmin = 4500,
        ymin = 5080,
        xmax = 4980,
        ymax = 5200,
168
169
170
      },
      {
        type = "Command",
171
        description = nil,
172
        action = {
173
          _switch = "DIAGRAMCALL",
174
175
176
          beforemsg = nil,
          aftermsg = nil,
          expressions = {
177
            "tst_templ_a",
178
          },
179
180
181
          variables = {},
          diagramid = "{TST-TEMPL/beta: Casos de Teste}",
          operation = "call",
182
        },
183
184
185
186
        xmin = 4500,
        ymin = 5280,
        xmax = 4980,
        ymax = 5400,
187
      },
188
189
    },
    Links = {
190
      {
191
192
193
194
195
196
197
198
199
200
201
        type = "Link",
        description = nil,
        from = 2,
        to = 1,
        x = {
          4740,
          4740,
        },
        y = {
          5340,
          5140,
202
203
204
        },
      },
      {
205
206
207
208
209
210
211
212
213
214
215
216
        type = "Link",
        description = nil,
        from = nil,
        to = 2,
        x = {
          4400,
          4740,
        },
        y = {
          5340,
          5340,
        },
217
      },
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
    },
    Areas = {
    },
    Hidden = {
    },
  },
  {
    id = "[[[TST-TEMPL]]]",
    name = "[[[TST-TEMPL]]]",
    kind = "Flow",
    description = nil,
    isApplication = true,
    globals = {
      {
        name = "tst_title",
        type = "STRING",
        list = false,
        value = "\"Template de Testes\"",
        comment = nil,
        is_arg = nil,
        is_ret = nil,
      },
      {
        name = "oks",
        type = "STRING",
        list = true,
        value = "{}",
        comment = nil,
        is_arg = nil,
        is_ret = nil,
      },
      {
        name = "fails",
        type = "STRING",
        list = true,
        value = "{}",
        comment = nil,
        is_arg = nil,
        is_ret = nil,
      },
    },
    errorFunction = nil,
    haltDiagram = nil,
    Nodes = {
      {
        type = "Command",
        description = "$Operation\n$Name",
        action = {
          _switch = "DIAGRAMCALL",
          beforemsg = nil,
          aftermsg = nil,
          expressions = {},
          variables = {},
          diagramid = "TST-TEMPL: Mtodo Alpha",
          operation = "call",
        },
        xmin = 5100,
        ymin = 5500,
        xmax = 5580,
        ymax = 5620,
      },
      {
        type = "Command",
        description = "anexar\n$parameter_2\nem $parameter_1",
282
283
284
285
286
        action = {
          _switch = "FUNCTIONCALL",
          beforemsg = nil,
          aftermsg = nil,
          expressions = {
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
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
340
341
342
343
344
345
346
347
348
349
350
351
352
            "oks",
            "ret_oks",
          },
          variables = {
            "oks",
          },
          functionid = "list_append",
        },
        xmin = 5940,
        ymin = 5500,
        xmax = 6140,
        ymax = 5620,
      },
      {
        type = "Command",
        description = "anexar\n$parameter_2\nem $parameter_1",
        action = {
          _switch = "FUNCTIONCALL",
          beforemsg = nil,
          aftermsg = nil,
          expressions = {
            "fails",
            "ret_fails",
          },
          variables = {
            "fails",
          },
          functionid = "list_append",
        },
        xmin = 6220,
        ymin = 5500,
        xmax = 6420,
        ymax = 5620,
      },
      {
        type = "Command",
        description = "formatar\n$result\nde $parameter_1",
        action = {
          _switch = "FUNCTIONCALL",
          beforemsg = "string.format(\"Casos de teste: %d, Resultados Esperados: %d, Resultados Inesperados: %d\", #oks+#fails, #oks, #fails)",
          aftermsg = nil,
          expressions = {
            "tst_title",
            "oks",
            "fails",
            "'full'",
          },
          variables = {
            "ret_txt",
          },
          functionid = "test_formatar_resultado",
        },
        xmin = 5940,
        ymin = 5100,
        xmax = 6140,
        ymax = 5220,
      },
      {
        type = "Command",
        description = "$Name\n$parameters",
        action = {
          _switch = "FUNCTIONCALL",
          beforemsg = nil,
          aftermsg = nil,
          expressions = {
            "ret_txt",
353
354
          },
          variables = {},
355
          functionid = "imprimir",
356
        },
357
358
359
360
        xmin = 6220,
        ymin = 5100,
        xmax = 6420,
        ymax = 5220,
361
362
363
364
365
366
367
368
369
      },
      {
        type = "Command",
        description = "$Name\n$parameters",
        action = {
          _switch = "FUNCTIONCALL",
          beforemsg = nil,
          aftermsg = nil,
          expressions = {
370
            "'op_a'",
371
372
          },
          variables = {},
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
          functionid = "test_iniciar_batelada_testes",
        },
        xmin = 4540,
        ymin = 5500,
        xmax = 5020,
        ymax = 5620,
      },
      {
        type = "Command",
        description = "informa\n$results",
        action = {
          _switch = "FUNCTIONCALL",
          beforemsg = nil,
          aftermsg = nil,
          expressions = {},
          variables = {
            "ret_oks",
            "ret_fails",
          },
          functionid = "test_obter_resultados",
        },
        xmin = 5660,
        ymin = 5500,
        xmax = 5860,
        ymax = 5620,
      },
      {
        type = "Command",
        description = "$Operation\n$Name",
        action = {
          _switch = "DIAGRAMCALL",
          beforemsg = nil,
          aftermsg = nil,
          expressions = {},
          variables = {},
          diagramid = "TST-TEMPL: Mtodo Beta",
          operation = "call",
        },
        xmin = 5100,
        ymin = 5300,
        xmax = 5580,
        ymax = 5420,
      },
      {
        type = "Command",
        description = "$Name\n$parameters",
        action = {
          _switch = "FUNCTIONCALL",
          beforemsg = nil,
          aftermsg = nil,
          expressions = {
            "'op_b'",
          },
          variables = {},
          functionid = "test_iniciar_batelada_testes",
        },
        xmin = 4540,
        ymin = 5300,
        xmax = 5020,
        ymax = 5420,
      },
      {
        type = "Command",
        description = "anexar\n$parameter_2\nem $parameter_1",
        action = {
          _switch = "FUNCTIONCALL",
          beforemsg = nil,
          aftermsg = nil,
          expressions = {
            "fails",
            "ret_fails",
          },
          variables = {
            "fails",
          },
          functionid = "list_append",
        },
        xmin = 6220,
        ymin = 5300,
        xmax = 6420,
        ymax = 5420,
      },
      {
        type = "Command",
        description = "informa\n$results",
        action = {
          _switch = "FUNCTIONCALL",
          beforemsg = nil,
          aftermsg = nil,
          expressions = {},
          variables = {
            "ret_oks",
            "ret_fails",
          },
          functionid = "test_obter_resultados",
        },
        xmin = 5660,
        ymin = 5300,
        xmax = 5860,
        ymax = 5420,
      },
      {
        type = "Command",
        description = "anexar\n$parameter_2\nem $parameter_1",
        action = {
          _switch = "FUNCTIONCALL",
          beforemsg = nil,
          aftermsg = nil,
          expressions = {
            "oks",
            "ret_oks",
          },
          variables = {
            "oks",
          },
          functionid = "list_append",
        },
        xmin = 5940,
        ymin = 5300,
        xmax = 6140,
        ymax = 5420,
      },
      {
        type = "Jump",
        description = "1",
        x = 6540,
        y = 5560,
        r = 40,
      },
      {
        type = "Jump",
        description = "1",
        x = 4420,
        y = 5360,
        r = 40,
      },
      {
        type = "Jump",
        description = "out",
        x = 6540,
        y = 5360,
        r = 40,
      },
      {
        type = "Jump",
        description = "out",
        x = 5760,
        y = 5160,
        r = 40,
      },
    },
    Links = {
      {
        type = "Link",
        description = nil,
        from = 6,
        to = 1,
        x = {
          4780,
          5340,
        },
        y = {
          5560,
          5560,
        },
      },
      {
        type = "Link",
        description = nil,
        from = 2,
        to = 3,
        x = {
          6040,
          6320,
        },
        y = {
          5560,
          5560,
551
552
553
554
555
        },
      },
      {
        type = "Link",
        description = nil,
556
557
        from = 10,
        to = 15,
558
        x = {
559
560
          6320,
          6540,
561
562
        },
        y = {
563
564
          5360,
          5360,
565
566
567
568
569
        },
      },
      {
        type = "Link",
        description = nil,
570
571
        from = 4,
        to = 5,
572
        x = {
573
574
          6040,
          6320,
575
576
        },
        y = {
577
578
          5160,
          5160,
579
580
581
582
583
        },
      },
      {
        type = "Link",
        description = nil,
584
585
        from = nil,
        to = 6,
586
        x = {
587
588
          4460,
          4780,
589
590
        },
        y = {
591
592
          5560,
          5560,
593
594
595
596
597
        },
      },
      {
        type = "Link",
        description = nil,
598
        from = 7,
599
600
        to = 2,
        x = {
601
602
          5760,
          6040,
603
604
        },
        y = {
605
606
          5560,
          5560,
607
608
609
610
611
        },
      },
      {
        type = "Link",
        description = nil,
612
613
        from = 1,
        to = 7,
614
        x = {
615
616
          5340,
          5760,
617
618
        },
        y = {
619
620
          5560,
          5560,
621
622
623
624
625
        },
      },
      {
        type = "Link",
        description = nil,
626
627
        from = 12,
        to = 10,
628
        x = {
629
630
          6040,
          6320,
631
632
        },
        y = {
633
634
          5360,
          5360,
635
636
637
638
639
        },
      },
      {
        type = "Link",
        description = nil,
640
641
        from = 11,
        to = 12,
642
        x = {
643
644
          5760,
          6040,
645
646
        },
        y = {
647
648
          5360,
          5360,
649
650
651
652
653
        },
      },
      {
        type = "Link",
        description = nil,
654
655
        from = 3,
        to = 13,
656
        x = {
657
658
          6320,
          6540,
659
660
        },
        y = {
661
662
          5560,
          5560,
663
664
665
666
667
        },
      },
      {
        type = "Link",
        description = nil,
668
669
        from = 14,
        to = 9,
670
        x = {
671
672
          4420,
          4780,
673
674
        },
        y = {
675
676
          5360,
          5360,
677
678
679
680
681
682
683
684
        },
      },
      {
        type = "Link",
        description = nil,
        from = 9,
        to = 8,
        x = {
685
686
          4780,
          5340,
687
688
        },
        y = {
689
690
          5360,
          5360,
691
692
693
694
695
696
        },
      },
      {
        type = "Link",
        description = nil,
        from = 8,
697
        to = 11,
698
        x = {
699
700
          5340,
          5760,
701
702
        },
        y = {
703
704
          5360,
          5360,
705
706
707
708
709
        },
      },
      {
        type = "Link",
        description = nil,
710
711
        from = 16,
        to = 4,
712
        x = {
713
714
          5760,
          6040,
715
716
        },
        y = {
717
718
          5160,
          5160,
719
720
721
722
        },
      },
    },
    Areas = {
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
      {
        description = "lib-print-1_1.mpam",
        documentation = nil,
        bgcolor = "255 223 186",
        alignment = 5,
        x = {
          6200,
          6200,
          6440,
          6440,
        },
        y = {
          5260,
          5080,
          5080,
          5260,
        },
      },
      {
742
        description = "lib-list-1_10.mpam",
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
        documentation = nil,
        bgcolor = "255 223 186",
        alignment = 5,
        x = {
          5920,
          5920,
          6160,
          6160,
        },
        y = {
          5660,
          5480,
          5480,
          5660,
        },
      },
759
760
761
762
763
    },
    Hidden = {
    },
  },
  {
764
765
    id = "{TST-TEMPL/alpha: Casos de Teste}",
    name = "{TST-TEMPL/alpha: Casos de Teste}",
766
767
768
769
    kind = "Flow",
    description = nil,
    isApplication = false,
    globals = {
770
771
772
773
774
775
776
777
778
      {
        name = "tst_inst",
        type = "tst_classe_template",
        list = false,
        value = nil,
        comment = nil,
        is_arg = true,
        is_ret = false,
      },
779
780
781
782
783
784
785
786
    },
    errorFunction = nil,
    haltDiagram = nil,
    Nodes = {
      {
        type = "Jump",
        description = "1",
        x = 4720,
787
        y = 5680,
788
789
        r = 40,
      },
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
      {
        type = "Command",
        description = "$result =\n$name\n$parameter_1",
        action = {
          _switch = "FUNCTIONCALL",
          beforemsg = nil,
          aftermsg = nil,
          expressions = {
            "{tst_inst;'alpha-checkret'}",
            "'-'",
          },
          variables = {
            "case",
          },
          functionid = "list_concat",
        },
        xmin = 4840,
        ymin = 5620,
        xmax = 5040,
        ymax = 5740,
      },
      {
        type = "Command",
        description = "$variable =\n$expression",
        action = {
          _switch = "EXPRESSION",
          beforemsg = nil,
          aftermsg = nil,
          expressions = {
            "0",
          },
          variables = {
            "tgt",
          },
          types = {
            "REAL",
          },
          islist = {
            false,
          },
        },
        xmin = 5400,
        ymin = 5620,
        xmax = 5600,
        ymax = 5740,
      },
      {
        type = "Command",
        description = "$variable =\n$expression",
        action = {
          _switch = "EXPRESSION",
          beforemsg = nil,
          aftermsg = nil,
          expressions = {
            "tostring(ret)",
          },
          variables = {
            "ret_txt",
          },
          types = {
            "STRING",
          },
          islist = {
            false,
          },
        },
        xmin = 6520,
        ymin = 5620,
        xmax = 6720,
        ymax = 5740,
      },
861
862
863
864
865
866
867
868
      {
        type = "Command",
        description = "$variable =\n$expression",
        action = {
          _switch = "EXPRESSION",
          beforemsg = nil,
          aftermsg = nil,
          expressions = {
869
            "ret_txt == tgt_txt",
870
871
872
873
874
875
876
877
878
879
880
          },
          variables = {
            "ok",
          },
          types = {
            "BOOLEAN",
          },
          islist = {
            false,
          },
        },
881
882
883
884
        xmin = 6800,
        ymin = 5620,
        xmax = 7000,
        ymax = 5740,
885
886
887
      },
      {
        type = "Command",
888
        description = "$variable =\n$expression",
889
890
891
892
893
        action = {
          _switch = "EXPRESSION",
          beforemsg = nil,
          aftermsg = nil,
          expressions = {
894
            "tostring(tgt)",
895
896
          },
          variables = {
897
            "tgt_txt",
898
899
900
901
902
903
904
905
          },
          types = {
            "STRING",
          },
          islist = {
            false,
          },
        },
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
        xmin = 5680,
        ymin = 5620,
        xmax = 5880,
        ymax = 5740,
      },
      {
        type = "Command",
        description = "$Name\n$parameters\n[$object]",
        action = {
          _switch = "OBJECTCALL",
          beforemsg = nil,
          aftermsg = nil,
          expressions = {
            "4",
            "5",
            "6",
          },
          variables = {
            "ret",
          },
          classid = "classe_template",
          objname = "inst",
          member = "method_alpha",
          operation = "call",
        },
        xmin = 5960,
        ymin = 5620,
        xmax = 6440,
        ymax = 5740,
      },
      {
        type = "Command",
        description = nil,
        action = {
          _switch = "OBJECTCALL",
          beforemsg = nil,
          aftermsg = nil,
          expressions = {
            "val_pt_real",
            "val_pt_real_opt",
            "val_real",
          },
          variables = {},
          classid = "tst_classe_template",
          objname = "tst_inst",
          member = "init_tst",
          operation = "call",
        },
        xmin = 5120,
        ymin = 5620,
        xmax = 5320,
        ymax = 5740,
958
959
960
      },
      {
        type = "Command",
961
        description = "$Name\n$parameters",
962
        action = {
963
          _switch = "FUNCTIONCALL",
964
965
966
          beforemsg = nil,
          aftermsg = nil,
          expressions = {
967
            "ok",
968
            "case",
969
970
            "tgt_txt",
            "ret_txt",
971
          },
972
973
          variables = {},
          functionid = "test_adicionar_resultado",
974
        },
975
976
977
978
        xmin = 7080,
        ymin = 5620,
        xmax = 7560,
        ymax = 5740,
979
980
981
982
983
984
985
986
987
      },
      {
        type = "Command",
        description = "$variable =\n$expression",
        action = {
          _switch = "EXPRESSION",
          beforemsg = nil,
          aftermsg = nil,
          expressions = {
988
            "65",
989
990
          },
          variables = {
991
            "val_pt_real",
992
993
          },
          types = {
994
            "REAL",
995
996
997
998
999
          },
          islist = {
            false,
          },
        },
1000
1001
1002
1003
        xmin = 4840,
        ymin = 5820,
        xmax = 5040,
        ymax = 5940,
1004
1005
1006
1007
1008
1009
1010
1011
1012
      },
      {
        type = "Command",
        description = "$variable =\n$expression",
        action = {
          _switch = "EXPRESSION",
          beforemsg = nil,
          aftermsg = nil,
          expressions = {
1013
            "66",
1014
1015
          },
          variables = {
1016
            "val_real",
1017
1018
          },
          types = {
1019
            "REAL",
1020
1021
1022
1023
1024
          },
          islist = {
            false,
          },
        },
1025
1026
1027
1028
        xmin = 5400,
        ymin = 5820,
        xmax = 5600,
        ymax = 5940,
1029
1030
1031
      },
      {
        type = "Jump",
1032
1033
1034
        description = "1",
        x = 7660,
        y = 5880,
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
        r = 40,
      },
      {
        type = "Command",
        description = "$variable =\n$expression",
        action = {
          _switch = "EXPRESSION",
          beforemsg = nil,
          aftermsg = nil,
          expressions = {
1045
            "6500.65",
1046
1047
          },
          variables = {
1048
            "val_pt_real_opt",
1049
1050
          },
          types = {
1051
            "REAL",
1052
1053
1054
1055
1056
1057
          },
          islist = {
            false,
          },
        },
        xmin = 5120,
1058
        ymin = 5820,
1059
        xmax = 5320,
1060
        ymax = 5940,
1061
1062
1063
      },
      {
        type = "Command",
1064
        description = "$result =\n$Name\n$parameter_1, $parameter_2\n[$object]",
1065
        action = {
1066
          _switch = "OBJECTCALL",
1067
1068
1069
          beforemsg = nil,
          aftermsg = nil,
          expressions = {
1070
1071
1072
            "'atributo_ponto_real'",
            "tgt_txt",
            "true",
1073
1074
          },
          variables = {
1075
1076
            "ok",
            "ret_txt",
1077
          },
1078
1079
1080
1081
          classid = "tst_classe_template",
          objname = "tst_inst",
          member = "check_attr",
          operation = "call",
1082
        },
1083
1084
1085
1086
        xmin = 6520,
        ymin = 5420,
        xmax = 7000,
        ymax = 5540,
1087
1088
1089
      },
      {
        type = "Command",
1090
        description = "$Name\n$parameters\n[$object]",
1091
        action = {
1092
          _switch = "OBJECTCALL",
1093
1094
1095
          beforemsg = nil,
          aftermsg = nil,
          expressions = {
1096
1097
1098
            "7",
            "8",
            "9",
1099
1100
1101
1102
          },
          variables = {
            "ret",
          },
1103
1104
1105
1106
          classid = "classe_template",
          objname = "inst",
          member = "method_alpha",
          operation = "call",
1107
        },
1108
1109
1110
1111
        xmin = 5960,
        ymin = 5420,
        xmax = 6440,
        ymax = 5540,
1112
1113
1114
1115
      },
      {
        type = "Jump",
        description = "2",
1116
        x = 4720,
1117
1118
1119
1120
1121
        y = 5480,
        r = 40,
      },
      {
        type = "Command",
1122
        description = "$variable =\n$expression",
1123
        action = {
1124
          _switch = "EXPRESSION",
1125
1126
1127
          beforemsg = nil,
          aftermsg = nil,
          expressions = {
1128
1129
1130
            "val_pt_real",
          },
          variables = {
1131
1132
            "tgt",
          },
1133
1134
1135
1136
1137
1138
          types = {
            "REAL",
          },
          islist = {
            false,
          },
1139
        },
1140
        xmin = 5400,
1141
        ymin = 5420,
1142
        xmax = 5600,
1143
1144
1145
1146
        ymax = 5540,
      },
      {
        type = "Command",
1147
        description = nil,
1148
        action = {
1149
          _switch = "OBJECTCALL",
1150
1151
1152
          beforemsg = nil,
          aftermsg = nil,
          expressions = {
1153
1154
1155
            "val_pt_real",
            "val_pt_real_opt",
            "val_real",
1156
1157
          },
          variables = {},
1158
1159
1160
1161
          classid = "tst_classe_template",
          objname = "tst_inst",
          member = "init_tst",
          operation = "call",
1162
        },
1163
1164
1165
1166
        xmin = 5120,
        ymin = 5420,
        xmax = 5320,
        ymax = 5540,
1167
1168
1169
1170
1171
1172
1173
1174
1175
      },
      {
        type = "Command",
        description = "$variable =\n$expression",
        action = {
          _switch = "EXPRESSION",
          beforemsg = nil,
          aftermsg = nil,
          expressions = {
1176
            "tostring(tgt)",
1177
1178
          },
          variables = {
1179
            "tgt_txt",
1180
1181
          },
          types = {
1182
            "STRING",
1183
1184
1185
1186
1187
          },
          islist = {
            false,
          },
        },
1188
1189
1190
1191
        xmin = 5680,
        ymin = 5420,
        xmax = 5880,
        ymax = 5540,
1192
1193
1194
      },
      {
        type = "Command",
1195
        description = "$Name\n$parameters",
1196
        action = {
1197
          _switch = "FUNCTIONCALL",
1198
1199
1200
          beforemsg = nil,
          aftermsg = nil,
          expressions = {
1201
            "ok",
1202
            "case",
1203
1204
            "tgt_txt",
            "ret_txt",
1205
          },
1206
1207
          variables = {},
          functionid = "test_adicionar_resultado",
1208
        },
1209
1210
1211
1212
        xmin = 7080,
        ymin = 5420,
        xmax = 7560,
        ymax = 5540,
1213
1214
1215
      },
      {
        type = "Jump",
1216
1217
1218
        description = "2",
        x = 7660,
        y = 5680,
1219
1220
1221
1222
        r = 40,
      },
      {
        type = "Command",
1223
        description = nil,
1224
        action = {
1225
          _switch = "OBJECTCALL",
1226
1227
          beforemsg = nil,
          aftermsg = nil,
1228
          expressions = {},
1229
          variables = {
1230
            "inst",
1231
          },
1232
1233
1234
1235
          classid = "tst_classe_template",
          objname = "tst_inst",
          member = "instancia_teste",
          operation = "get",
1236
        },
1237
1238
1239
1240
        xmin = 4840,
        ymin = 6020,
        xmax = 5040,
        ymax = 6140,
1241
1242
1243
      },
      {
        type = "Command",
1244
        description = "$result =\n$name\n$parameter_1",
1245
        action = {
1246
          _switch = "FUNCTIONCALL",
1247
1248
1249
          beforemsg = nil,
          aftermsg = nil,
          expressions = {
1250
1251
            "{tst_inst;'alpha-checkattr'}",
            "'-'",
1252
1253
          },
          variables = {
1254
            "case",
1255
          },
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
          functionid = "list_concat",
        },
        xmin = 4840,
        ymin = 5420,
        xmax = 5040,
        ymax = 5540,
      },
    },
    Links = {
      {
        type = "Link",
        description = nil,
        from = 1,
        to = 2,
        x = {
          4720,
          4940,
        },
        y = {
          5680,
          5680,
        },
      },
      {
        type = "Link",
        description = nil,
        from = 5,
        to = 9,
        x = {
          6900,
          7320,
        },
        y = {
          5680,
          5680,
        },
      },
      {
        type = "Link",
        description = nil,
        from = 4,
        to = 5,
        x = {
          6620,
          6900,
        },
        y = {
          5680,
          5680,
        },
      },
      {
        type = "Link",
        description = nil,
        from = 8,
        to = 3,
        x = {
          5220,
          5500,
        },
        y = {
          5680,
          5680,
        },
      },
      {
        type = "Link",
        description = nil,
        from = 2,
        to = 8,
        x = {
          4940,
          5220,
        },
        y = {
          5680,
          5680,
1333
1334
1335
1336
1337
        },
      },
      {
        type = "Link",
        description = nil,
1338
1339
        from = 6,
        to = 7,
1340
        x = {
1341
1342
          5780,
          6200,
1343
1344
        },
        y = {
1345
1346
          5680,
          5680,
1347
1348
1349
1350
1351
        },
      },
      {
        type = "Link",
        description = nil,
1352
        from = 7,
1353
1354
        to = 4,
        x = {
1355
1356
          6200,
          6620,
1357
1358
        },
        y = {
1359
1360
          5680,
          5680,
1361
1362
1363
1364
1365
        },
      },
      {
        type = "Link",
        description = nil,
1366
1367
        from = 3,
        to = 6,
1368
        x = {
1369
1370
          5500,
          5780,
1371
1372
        },
        y = {
1373
1374
          5680,
          5680,
1375
1376
1377
1378
1379
        },
      },
      {
        type = "Link",
        description = nil,
1380
1381
        from = 22,
        to = 10,
1382
        x = {
1383
1384
          4940,
          4940,
1385
1386
        },
        y = {
1387
1388
          6080,
          5880,
1389
1390
1391
1392
1393
        },
      },
      {
        type = "Link",
        description = nil,
1394
1395
        from = 10,
        to = 13,
1396
        x = {
1397
          4940,
1398
1399
1400
          5220,
        },
        y = {
1401
1402
          5880,
          5880,
1403
1404
1405
1406
1407
        },
      },
      {
        type = "Link",
        description = nil,
1408
1409
        from = nil,
        to = 22,
1410
        x = {
1411
          4720,
1412
1413
1414
          4940,
        },
        y = {
1415
1416
          6080,
          6080,
1417
1418
1419
1420
1421
        },
      },
      {
        type = "Link",
        description = nil,
1422
1423
        from = 13,
        to = 11,
1424
        x = {
1425
1426
          5220,
          5500,
1427
1428
        },
        y = {
1429
1430
          5880,
          5880,
1431
1432
1433
1434
1435
        },
      },
      {
        type = "Link",
        description = nil,
1436
1437
        from = 11,
        to = 12,
1438
        x = {
1439
1440
          5500,
          7660,
1441
1442
        },
        y = {
1443
1444
          5880,
          5880,
1445
1446
1447
1448
1449
        },
      },
      {
        type = "Link",
        description = nil,
1450
1451
        from = 18,
        to = 17,
1452
        x = {
1453
1454
          5220,
          5500,
1455
1456
        },
        y = {
1457
1458
          5480,
          5480,
1459
1460
1461
1462
1463
        },
      },
      {
        type = "Link",
        description = nil,
1464
1465
        from = 16,
        to = 23,
1466
        x = {
1467
          4720,
1468
1469
1470
          4940,
        },
        y = {
1471
1472
          5480,
          5480,
1473
1474
1475
1476
1477
        },
      },
      {
        type = "Link",
        description = nil,
1478
1479
        from = 19,
        to = 15,
1480
        x = {
1481
1482
          5780,
          6200,
1483
1484
        },
        y = {
1485
1486
          5480,
          5480,
1487
1488
1489
1490
1491
        },
      },
      {
        type = "Link",
        description = nil,
1492
1493
        from = 14,
        to = 20,
1494
        x = {
1495
1496
          6760,
          7320,
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
        },
        y = {
          5480,
          5480,
        },
      },
      {
        type = "Link",
        description = nil,
        from = 15,
        to = 14,
        x = {
1509
1510
          6200,
          6760,
1511
1512
        },
        y = {
1513
1514
          5480,
          5480,
1515
1516
1517
1518
1519
        },
      },
      {
        type = "Link",
        description = nil,
1520
1521
        from = 17,
        to = 19,
1522
        x = {
1523
1524
          5500,
          5780,
1525
1526
        },
        y = {
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
          5480,
          5480,
        },
      },
      {
        type = "Link",
        description = nil,
        from = 9,
        to = 21,
        x = {
          7320,
          7660,
        },
        y = {
          5680,
          5680,
        },
      },
      {
        type = "Link",
        description = nil,
        from = 23,
        to = 18,
        x = {
          4940,
          5220,
        },
        y = {
          5480,
          5480,
        },
      },
    },
    Areas = {
    },
    Hidden = {
    },
  },
  {
    id = "{TST-TEMPL/beta: Casos de Teste}",
    name = "{TST-TEMPL/beta: Casos de Teste}",
    kind = "Flow",
    description = nil,
    isApplication = false,
    globals = {
      {
        name = "tst_inst",
        type = "tst_classe_template",
        list = false,
        value = nil,
        comment = nil,
        is_arg = true,
        is_ret = false,
      },
    },
    errorFunction = nil,
    haltDiagram = nil,
    Nodes = {
      {
        type = "Jump",
        description = "1",
        x = 4720,
        y = 5680,
        r = 40,
      },
      {
        type = "Command",
        description = "$result =\n$name\n$parameter_1",
        action = {
          _switch = "FUNCTIONCALL",
          beforemsg = nil,
          aftermsg = nil,
          expressions = {
            "{tst_inst;'beta-checkret-1'}",
            "'-'",
          },
          variables = {
            "case",
          },
          functionid = "list_concat",
        },
        xmin = 4840,
        ymin = 5620,
        xmax = 5040,
        ymax = 5740,
      },
      {
        type = "Command",
        description = "$variable =\n$expression",
        action = {
          _switch = "EXPRESSION",
          beforemsg = nil,
          aftermsg = nil,
          expressions = {
            "true",
          },
          variables = {
            "tgt",
          },
          types = {
            "BOOLEAN",
          },
          islist = {
            false,
          },
        },
        xmin = 5400,
        ymin = 5620,
        xmax = 5600,
        ymax = 5740,
      },
      {
        type = "Command",
        description = "$variable =\n$expression",
        action = {
          _switch = "EXPRESSION",
          beforemsg = nil,
          aftermsg = nil,
          expressions = {
            "tostring(ret)",
          },
          variables = {
            "ret_txt",
          },
          types = {
            "STRING",
          },
          islist = {
            false,
          },
        },
        xmin = 6520,
        ymin = 5620,
        xmax = 6720,
        ymax = 5740,
      },
      {
        type = "Command",
        description = "$variable =\n$expression",
        action = {
          _switch = "EXPRESSION",
          beforemsg = nil,
          aftermsg = nil,
          expressions = {
            "ret_txt == tgt_txt",
          },
          variables = {
            "ok",
          },
          types = {
            "BOOLEAN",
          },
          islist = {
            false,
          },
        },
        xmin = 6800,
        ymin = 5620,
        xmax = 7000,
        ymax = 5740,
      },
      {
        type = "Command",
        description = "$variable =\n$expression",
        action = {
          _switch = "EXPRESSION",
          beforemsg = nil,
          aftermsg = nil,
          expressions = {
            "tostring(tgt)",
          },
          variables = {
            "tgt_txt",
          },
          types = {
            "STRING",
          },
          islist = {
            false,
          },
1707
        },
1708
1709
1710
1711
        xmin = 5680,
        ymin = 5620,
        xmax = 5880,
        ymax = 5740,
1712
1713
      },
      {
1714
        type = "Command",
1715
        description = nil,
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
        action = {
          _switch = "OBJECTCALL",
          beforemsg = nil,
          aftermsg = nil,
          expressions = {
            "val_pt_real",
            "val_pt_real_opt",
            "val_real",
          },
          variables = {},
          classid = "tst_classe_template",
          objname = "tst_inst",
          member = "init_tst",
          operation = "call",
1730
        },
1731
1732
1733
1734
        xmin = 5120,
        ymin = 5620,
        xmax = 5320,
        ymax = 5740,
1735
1736
      },
      {
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
        type = "Command",
        description = "$Name\n$parameters",
        action = {
          _switch = "FUNCTIONCALL",
          beforemsg = nil,
          aftermsg = nil,
          expressions = {
            "ok",
            "case",
            "tgt_txt",
            "ret_txt",
          },
          variables = {},
          functionid = "test_adicionar_resultado",
1751
        },
1752
1753
1754
1755
        xmin = 7080,
        ymin = 5620,
        xmax = 7560,
        ymax = 5740,
1756
1757
      },
      {
1758
1759
1760