<commit_before>/*
 * Copyright (c) 2011-2012, Yahoo! Inc.  All rights reserved.
 * Copyrights licensed under the New BSD License.
 * See the accompanying LICENSE file for terms.
 */
YUI().use('mojito-perf', 'test', function(Y) {

    var suite = new Y.Test.Suite('mojito-perf-server-tests'),
        A = Y.Assert,
        OA = Y.ObjectAssert;

    suite.add(new Y.Test.Case({

        setUp: function() {

        },

        tearDown: function() {

        }

    }));

    Y.Test.Runner.add(suite);

});<commit_msg>adding unit test for the perf facade after including mojito-perf server<commit_after>/*
 * Copyright (c) 2011-2012, Yahoo! Inc.  All rights reserved.
 * Copyrights licensed under the New BSD License.
 * See the accompanying LICENSE file for terms.
 */
YUI().use('mojito-perf', 'test', function(Y) {

    var suite = new Y.Test.Suite('mojito-perf-server-tests'),
        A = Y.Assert,
        OA = Y.ObjectAssert;

    suite.add(new Y.Test.Case({

        setUp: function() {
        },

        tearDown: function() {
        },

        /*
        This is a low-level component, the only thing that is very important
        for us is to make sure that after including mojito-perf, the original
        facade is still in place without any change.
        */

        'test perf facade': function () {
            A.isObject(Y.mojito.perf);
            A.isFunction(Y.mojito.perf.mark);
            A.isFunction(Y.mojito.perf.timeline);
            A.isUndefined(Y.mojito.perf.instrumentMojitoRequest, 'the default facade should not enable this');
        },

        'test perf timeline facade': function () {
            var t = Y.mojito.perf.timeline('group', 'label', 'msg', 'id');
            A.isObject(t);
            A.isFunction(t.done);
        }

    }));

    Y.Test.Runner.add(suite);

});
{'fraction_non_alphanumeric': 0.13351648351648351, 'fraction_numerical': 0.008791208791208791, 'mean_word_length': 2.1835664335664338, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5388156', 'n_tokens_mistral': 591, 'n_tokens_neox': 558, 'n_words': 152}