Packages
Language-agnostic mutation testing library for Elixir, Erlang, and other BEAM languages. Evaluates test suite quality by introducing deliberate bugs into code and verifying that tests catch them. Intelligent file filtering, 18 mutation strategies, sound equivalent-mutant handling, and more.
Current section
Files
Jump to
Current section
Files
lib/muex/example_calculator.ex
defmodule Muex.ExampleCalculator do
@moduledoc """
Example calculator for demonstrating mutation testing.
"""
def add(a, b), do: a + b
def subtract(a, b), do: a - b
def multiply(a, b), do: a * b
def divide(a, b), do: a / b
def compare_equal(a, b), do: a == b
def compare_greater(a, b), do: a > b
end