MCPcopy Create free account
hub / github.com/catboost/catboost / test

Function test

catboost/node-package/build_scripts/test.ts:3–13  ·  view source on GitHub ↗
(haveCuda: boolean)

Source from the content-addressed store, hash-verified

1import {execProcess} from './common';
2
3export async function test(haveCuda: boolean) {
4 var cmd = 'node ./lib/tests/model.js'
5 if (haveCuda) {
6 cmd += ' --have-cuda'
7 }
8 const result = await execProcess(cmd);
9 if (result.code !== 0) {
10 throw(new Error(`Unit tests failed :${
11 result.code} ${result.signal} ${result.err?.message}`))
12 }
13}

Callers 2

allTestsFunction · 0.90
ciFunction · 0.90

Calls 1

execProcessFunction · 0.90

Tested by

no test coverage detected