[tor-bugs] #18797 [metrics-lib]: create a DescriptorGenerator?

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Apr 12 08:04:56 UTC 2016


#18797: create a DescriptorGenerator?
-----------------------------+---------------------
     Reporter:  iwakeh       |      Owner:  karsten
         Type:  enhancement  |     Status:  new
     Priority:  Low          |  Milestone:
    Component:  metrics-lib  |    Version:
     Severity:  Normal       |   Keywords:
Actual Points:               |  Parent ID:
       Points:               |   Reviewer:
      Sponsor:               |
-----------------------------+---------------------
 quote from #16873:
   I pondered adding a `DescriptorGenerator` a while ago, where one would
 construct a new instance of a `Descriptor`, call its setters to give it
 some values, and then have the generator generate a text representation of
 that descriptor.  This would be useful for testing and maybe other things.
 Now, would the Javadoc of these setters copy the Javadoc of the getters or
 simply link to them?  Or would we use some smarter pattern for building
 these instances?  (And is there a smarter pattern for parsed descriptors
 than a huge interface with dozens of getters?)

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/18797>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list