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)
| 487 | // the test runner. The file descriptor set is used to register proto messages in the global proto |
| 488 | // registry. |
| 489 | func AddFileDescriptorSetProto(fds *descpb.FileDescriptorSet) TestRunnerOption { |
| 490 | return func(tr *TestRunner) (*TestRunner, error) { |
| 491 | tr.FileDescriptorSet = fds |
| 492 | return tr, nil |
| 493 | } |
| 494 | } |
| 495 | |
| 496 | func registerMessages(fds *descpb.FileDescriptorSet) error { |
| 497 | for _, file := range fds.GetFile() { |
nothing calls this directly
no outgoing calls
no test coverage detected