<commit_before>'use strict'

//const _ = require('lodash')
const assert = require('assert')
const lib = require('../../lib')

describe('lib.Util', () => {
  describe('#getHandlerName', () => {
    it('should return the handler name in a route handler', () => {
      assert.equal(lib.Util.getHandlerName('TestController.testHandler'), 'testHandler')
    })
  })

  describe('#getControllerHandler', () => {
    it('should correctly combine controller and handler', () => {
      assert.equal(lib.Util.getControllerHandler('TestController', 'testHandler'), 'TestController.testHandler')
    })
  })

})
<commit_msg>[test] add test for util.getControllerMantissa<commit_after>'use strict'

//const _ = require('lodash')
const assert = require('assert')
const lib = require('../../lib')

describe('lib.Util', () => {
  describe('#getHandlerName', () => {
    it('should return the handler name in a route handler', () => {
      assert.equal(lib.Util.getHandlerName('TestController.testHandler'), 'testHandler')
    })
  })

  describe('#getControllerHandler', () => {
    it('should correctly combine controller and handler', () => {
      assert.equal(lib.Util.getControllerHandler('TestController', 'testHandler'), 'TestController.testHandler')
    })
  })

  describe('#getControllerMantissa', () => {
    it('should extract controller name from module name', () => {
      assert.equal(lib.Util.getControllerMantissa('TestController'), 'test')
    })
  })

})

{'fraction_non_alphanumeric': 0.18331053351573187, 'fraction_numerical': 0.0, 'mean_word_length': 4.339416058394161, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1963901', 'n_tokens_mistral': 418, 'n_tokens_neox': 409, 'n_words': 80}