StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
StackGenVis/frontend/node_modules/resolve-protobuf-schema/test/index.js

49 lines
1.1 KiB

var tape = require('tape')
var schema = require('../')
var test = function(name, fn) {
tape(name, function(t) {
fn(t, schema)
})
tape(name+' sync', function(t) {
fn(t, function(name, cb) {
cb(null, schema.sync(name))
})
})
}
test('c', function(t, schema) {
schema(__dirname+'/c.proto', function(err, sch) {
t.notOk(err, 'no err')
t.same(sch.messages.length, 1)
schema(__dirname+'/c', function(err, sch) {
t.notOk(err, 'no err')
t.same(sch.messages.length, 1)
t.end()
})
})
})
test('b imports c', function(t, schema) {
schema(__dirname+'/b.proto', function(err, sch) {
t.notOk(err, 'no err')
t.same(sch.messages.length, 2)
schema(__dirname+'/b', function(err, sch) {
t.notOk(err, 'no err')
t.same(sch.messages.length, 2)
t.end()
})
})
})
test('a imports b imports c', function(t, schema) {
schema(__dirname+'/a.proto', function(err, sch) {
t.notOk(err, 'no err')
t.same(sch.messages.length, 3)
schema(__dirname+'/a', function(err, sch) {
t.notOk(err, 'no err')
t.same(sch.messages.length, 3)
t.end()
})
})
})