Skip to content

Commit

Permalink
Move debug reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Sep 5, 2021
1 parent ffb360b commit f30d81c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { fieldColor } from '../../utils/colors.js'
import { getCombinationNameColor } from '../../utils/name.js'
import { STAT_TITLES } from '../../utils/stat_titles.js'
import { getTables } from '../../utils/table.js'
import { fieldColor } from '../utils/colors.js'
import { getCombinationNameColor } from '../utils/name.js'
import { STAT_TITLES } from '../utils/stat_titles.js'
import { getTables } from '../utils/table.js'

// Retrieve all stats shown in tables
export const getStatsTables = function (combinations, screenWidth) {
// Debugging reporter only meant for development purpose
const reportTerminal = function ({ combinations, screenWidth }) {
const statNames = getStatNames(combinations)
const headerRow = getHeaderRow(statNames)
const bodyRows = getBodyRows(combinations, statNames)
Expand Down Expand Up @@ -67,3 +67,5 @@ const getCell = function (
) {
return prettyColor
}

export const debug = { reportTerminal, capabilities: { debugStats: true } }
8 changes: 0 additions & 8 deletions src/report/reporters/debug/main.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/report/reporters/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { boxplot } from './boxplot/main.js'
import { debug } from './debug/main.js'
import { debug } from './debug.js'
import { histogram } from './histogram/main.js'
import { historyReporter as history } from './history.js'

Expand Down

0 comments on commit f30d81c

Please sign in to comment.