planning
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s

This commit is contained in:
2024-10-14 09:15:30 +02:00
parent bcba00a730
commit 6e64e138e2
21059 changed files with 2317811 additions and 1 deletions

5
node_modules/resolve-protobuf-schema/test/a.proto generated vendored Normal file
View File

@@ -0,0 +1,5 @@
import "./b.proto";
message A {
optional string a = 1;
}

5
node_modules/resolve-protobuf-schema/test/b.proto generated vendored Normal file
View File

@@ -0,0 +1,5 @@
import "./c.proto";
message B {
optional string b = 1;
}

3
node_modules/resolve-protobuf-schema/test/c.proto generated vendored Normal file
View File

@@ -0,0 +1,3 @@
message C {
optional string c = 1;
}

49
node_modules/resolve-protobuf-schema/test/index.js generated vendored Normal file
View File

@@ -0,0 +1,49 @@
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()
})
})
})