Test Macros

Learn how to test the macros by performing some read/write operations.

We'll cover the following


Let's create a graph and write it using the macros we defined. We’ll import the functions we just added to the NativeGraph module so that we can drop the NativeGraph. prefix when calling these functions. If we want to persist this across IEx sessions, we can also add to our IEx config file .iex.exs, but we risk a conflict later when we come across other graph types, so we’ll need to be mindful to import the correct module for the graph type as required.

Get hands-on with 1200+ tech skills courses.