#!/usr/bin/env elixir # Simple test to check module loading Mix.install([]) # Add the lib path Code.prepend_path("lib") IO.puts("=== Simple Module Load Test ===") # Try to load the module try do {:module, module} = Code.ensure_loaded(DaProductApp.MercuryISO8583.Packagers.FieldPackagers.IFB_AMOUNT) IO.puts("✅ Module loaded successfully: #{inspect(module)}") # Check if new/3 function exists functions = module.__info__(:functions) IO.puts("Available functions: #{inspect(functions)}") has_new_3 = Enum.any?(functions, fn {name, arity} -> name == :new and arity == 3 end) IO.puts("Has new/3 function: #{has_new_3}") rescue error -> IO.puts("❌ Failed to load module: #{inspect(error)}") end