Files
n8n-openai-adapter/lib/ex_unit/case.ex
T
2011-02-19 09:23:34 +01:00

16 lines
290 B
Elixir

Code.require "ex_unit/assertions"
module ExUnit::Case
proto ExUnit::Assertions
def __tests__
regexp = ~r(_test$)
self.__public_proto_methods__.foldl [], do ({name, _arity}, acc)
if regexp.match?(name)
[name|acc]
else
acc
end
end
end
end