com.indeed.proctor.consumer.ant.groups-js.ftl Maven / Gradle / Ivy
The newest version!
<#if useClosure>
goog.provide('${packageName}');
/**
* Entry point for javascript to assign test groups and query for
* group membership when needed.
*
* Call init() to create a global instance of ${groupsClassName}_.
* Call getGroups() to retrieve the reference.
*/
${packageName} = (function() {
<#else>
(function(root, factory) {
if (typeof define === 'function' ${r"&&"} define.amd) {
define('${groupsClassName}', [], factory);
} else if (typeof exports === 'object') {
module.exports = factory();
} else {
root.${groupsClassName} = factory();
}
}(this, function() {
#if>
/**
* Sets proctor groups based on an array of integer values
* that matches the number of tests in the proctor specification
* and is in alphabetical order with respect to proctor test names.
*
* If no values are supplied, sets default values for all groups.
*
* @param {Array.