MCPcopy Index your code
hub / github.com/bedroombuilds/python2rust / make_person

Function make_person

0b_traits/python/super.py:61–69  ·  view source on GitHub ↗
(rnd)

Source from the content-addressed store, hash-verified

59
60
61def make_person(rnd):
62 if 0 <= rnd <= 3:
63 return StreetPerson("Bob")
64 elif 4 <= rnd <= 6:
65 return CollegeStudent("Bobby")
66 elif 7 <= rnd <= 9:
67 return RustProgrammer("Robert")
68 else:
69 return SuperCompSciStudent("Bert")
70
71
72def comp_sci_student_greeting(student):

Callers 1

super.pyFile · 0.70

Calls 4

StreetPersonClass · 0.85
CollegeStudentClass · 0.70
RustProgrammerClass · 0.70
SuperCompSciStudentClass · 0.70

Tested by

no test coverage detected