MCPcopy Create free account
hub / github.com/cel-expr/cel-go / AddFileDescriptorSetProto

Function AddFileDescriptorSetProto

tools/celtest/test_runner.go:489–494  ·  view source on GitHub ↗

AddFileDescriptorSetProto creates a Test Runner Option which adds a file descriptor set proto to the test runner. The file descriptor set is used to register proto messages in the global proto registry.

(fds *descpb.FileDescriptorSet)

Source from the content-addressed store, hash-verified

487// the test runner. The file descriptor set is used to register proto messages in the global proto
488// registry.
489func AddFileDescriptorSetProto(fds *descpb.FileDescriptorSet) TestRunnerOption {
490 return func(tr *TestRunner) (*TestRunner, error) {
491 tr.FileDescriptorSet = fds
492 return tr, nil
493 }
494}
495
496func registerMessages(fds *descpb.FileDescriptorSet) error {
497 for _, file := range fds.GetFile() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected