Please check this code:
defmodule InfinitePollTask do
def poll(opts \\ [])
# function body code here
poll(new_opts)
end
end
I want to write a unit test for the function body code, assuming the function body perform some important computation using opts
and produce a new_opts
for the next iteration.