Sha256: 2df6c91d2c79fcaefb4d233f80bc62165e82e3c695b4703dbe29bd9aa796f7d8

Contents?: true

Size: 1.7 KB

Versions: 12

Compression:

Stored size: 1.7 KB

Contents

# encoding: utf-8

original = $VERBOSE
# Namespace for test application
# Silence intentional violations
$VERBOSE = false
module TestApp
  module InstanceMethodTests
    module DefinedOnce
      def foo; end
    end

    class WithMemoizer
      include Adamantium
      def foo; end
      memoize :foo
    end

    module DefinedMultipleTimes
      class DifferentLines
        def foo
        end

        def foo(_arg)
        end
      end

      class SameLineSameScope
        def foo; end; def foo(_arg); end
      end

      class SameLineDifferentScope
        def self.foo; end; def foo(_arg); end
      end
    end

    class InClassEval
      class_eval do
        def foo
        end
      end
    end

    class InModuleEval
      module_eval do
        def foo
        end
      end
    end

    class InInstanceEval
      module_eval do
        def foo
        end
      end
    end
  end

  module SingletonMethodTests
    module DefinedOnSelf
      def self.foo; end
    end

    module AlsoDefinedOnLvar
      a = Object.new
      def a.foo; end; def self.foo; end
    end

    module DefinedOnConstant
      module InsideNamespace
        def InsideNamespace.foo
        end
      end

      module OutsideNamespace
      end

      def OutsideNamespace.foo
      end
    end

    module DefinedMultipleTimes
      module DifferentLines
        def self.foo
        end

        def self.foo(_arg)
        end
      end

      module SameLine
        module SameScope
          def self.foo; end; def self.foo(_arg); end;
        end

        module DifferentScope
          def self.foo; end; def DifferentScope.foo(_arg); end
        end
      end
    end
  end
end

require 'test_app/literal'
$VERBOSE = original

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
mutant-0.7.8 test_app/lib/test_app.rb
mutant-0.7.7 test_app/lib/test_app.rb
mutant-0.7.6 test_app/lib/test_app.rb
mutant-0.7.5 test_app/lib/test_app.rb
mutant-0.7.4 test_app/lib/test_app.rb
mutant-0.7.3 test_app/lib/test_app.rb
mutant-0.7.2 test_app/lib/test_app.rb
mutant-0.7.1 test_app/lib/test_app.rb
mutant-0.6.7 test_app/lib/test_app.rb
mutant-0.6.6 test_app/lib/test_app.rb
mutant-0.6.5 test_app/lib/test_app.rb
mutant-0.6.4 test_app/lib/test_app.rb