Class: Mutant::Result::JSONWriter Private

Inherits:
Object
  • Object
show all
Defined in:
lib/mutant/result/json_writer.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Write result JSON to .mutant/results/

Constant Summary collapse

RESULTS_DIR =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

'.mutant/results'

Instance Method Summary collapse

Instance Method Details

#callPathname

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Write result JSON file

Returns:

  • (Pathname)


14
15
16
17
18
19
20
21
22
# File 'lib/mutant/result/json_writer.rb', line 14

def call
  dir = env.world.pathname.new(RESULTS_DIR)
  dir.mkpath

  path = dir.join("#{SESSION_ID}.json")
  path.write(json)

  path
end