<commit_before>;
;  (C) Copyright 2016  <NAME>
;
;  All rights reserved. This program and the accompanying materials
;  are made available under the terms of the Eclipse Public License v1.0
;  which accompanies this distribution, and is available at
;  http://www.eclipse.org/legal/epl-v10.html
;
;  Contributors:
;      <NAME>
;

(ns emender-jenkins.irc-bot-test
  (:require [clojure.test :refer :all]
            [emender-jenkins.irc-bot :refer :all]))

;
; Common functions used by tests.
;

(defn callable?
    "Test if given function-name is bound to the real function."
    [function-name]
    (clojure.test/function? function-name))

;
; Tests for function existence
;

(deftest test-message-to-channel?
    "Check that the emender-jenkins.irc-bot/message-to-channel? definition exists."
    (testing "if the emender-jenkins.irc-bot/message-to-channel? definition exists."
        (is (callable? 'emender-jenkins.irc-bot/message-to-channel?))))

(deftest test-message-for-me?
    "Check that the emender-jenkins.irc-bot/message-for-me? definition exists."
    (testing "if the emender-jenkins.irc-bot/message-for-me? definition exists."
        (is (callable? 'emender-jenkins.irc-bot/message-for-me?))))
<commit_msg>Added another two tests into irc-bot-test module<commit_after>;
;  (C) Copyright 2016  <NAME>
;
;  All rights reserved. This program and the accompanying materials
;  are made available under the terms of the Eclipse Public License v1.0
;  which accompanies this distribution, and is available at
;  http://www.eclipse.org/legal/epl-v10.html
;
;  Contributors:
;      <NAME>
;

(ns emender-jenkins.irc-bot-test
  (:require [clojure.test :refer :all]
            [emender-jenkins.irc-bot :refer :all]))

;
; Common functions used by tests.
;

(defn callable?
    "Test if given function-name is bound to the real function."
    [function-name]
    (clojure.test/function? function-name))

;
; Tests for function existence
;

(deftest test-message-to-channel?
    "Check that the emender-jenkins.irc-bot/message-to-channel? definition exists."
    (testing "if the emender-jenkins.irc-bot/message-to-channel? definition exists."
        (is (callable? 'emender-jenkins.irc-bot/message-to-channel?))))

(deftest test-message-for-me?
    "Check that the emender-jenkins.irc-bot/message-for-me? definition exists."
    (testing "if the emender-jenkins.irc-bot/message-for-me? definition exists."
        (is (callable? 'emender-jenkins.irc-bot/message-for-me?))))

(deftest test-create-reply
    "Check that the emender-jenkins.irc-bot/create-reply definition exists."
    (testing "if the emender-jenkins.irc-bot/create-reply definition exists."
        (is (callable? 'emender-jenkins.irc-bot/create-reply))))

(deftest test-prepare-reply-text
    "Check that the emender-jenkins.irc-bot/prepare-reply-text definition exists."
    (testing "if the emender-jenkins.irc-bot/prepare-reply-text definition exists."
        (is (callable? 'emender-jenkins.irc-bot/prepare-reply-text))))

{'fraction_non_alphanumeric': 0.12987012987012986, 'fraction_numerical': 0.005328005328005328, 'mean_word_length': 3.6003062787136293, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2349739', 'n_tokens_mistral': 1018, 'n_tokens_neox': 983, 'n_words': 248}