The module test_caller
A test module that imports test_callee and has the entry.
What it is for. It is the caller of the first test of the loader, on the host (test_modules in tools/modustool/build/modules.odin): its entry calls test_callee through an import slot, so the test checks the import and the rebases of both modules in one number. It is not in the boot image, and its entry is not the entry of a process: it returns a value.
test_caller module with an entry
- Hash
4aff3e24946a186ac53561db9c7eebcaa5e6c81bbbcfeb83ef389ff5a48f7942- Size
9122 bytes- Exports
0- Imports
1- Imported by
0- License
- MIT
A test module that imports test_callee and has the entry
| Fact | Value |
|---|---|
| Kind | Modules with no entry |
| Source | src/modules/tests/test_caller |
| Boot image | no: not in the boot image |
| Build settings | none: the defaults of the source |
| Imports | |
| Imported by | none |
Neighbours
What it imports, at its left, and what imports it, at its right: the part of the module graph that touches it.
Exports
| Export | What it does |
|---|---|
entry() | The entry of test_caller: two calls of apply through the import slot |
entry
entry()
The entry of test_caller: two calls of apply through the import slot. The modus tool expects this value: (10 * 3 + 1) + (10 * 2 + 2), so 53. The first call is the first of the module: its count adds 1, the second adds 2.
- Form
- The entry of the module: one parameter, an address, fixed by the contract.
src/modules/tests/test_caller/main.odin:19
Read from the source of the module, as the build reads it to describe the exports (tools/modustool/build/describe.odin).
