From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Received: by 2002:a6b:2712:: with SMTP id n18-v6mr3119495ion.90.1530817434170; Thu, 05 Jul 2018 12:03:54 -0700 (PDT) X-Received: by 2002:aca:2b06:: with SMTP id i6-v6mr1580263oik.0.1530817433783; Thu, 05 Jul 2018 12:03:53 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.uzoreto.com!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!d7-v6no2903064itj.0!news-out.google.com!z3-v6ni2927iti.0!nntp.google.com!u78-v6no2872764itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 5 Jul 2018 12:03:53 -0700 (PDT) In-Reply-To: <2018051218364783124-contact@flyx.org> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=73.207.197.148; posting-account=AgomvAoAAAAj6rtZlNDUf1S1XVXbXDpg NNTP-Posting-Host: 73.207.197.148 References: <7bc351f9-3373-4d48-95c3-c081cb5506f3@googlegroups.com> <2018042711034634047-contact@flyx.org> <107d577c-e872-4259-84c4-e68a63ce6b0e@googlegroups.com> <2018051218364783124-contact@flyx.org> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <3ac0cc24-4fcb-43a8-921d-2af2bcf1896c@googlegroups.com> Subject: Re: Ada aunit examples From: Michael Hardeman Injection-Date: Thu, 05 Jul 2018 19:03:54 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:53664 Date: 2018-07-05T12:03:53-07:00 List-Id: Hey Felix, I've finished converting everything to use aunit, and wrote a whole heap of new tests. I've even almost got gcov working which would be a good way to track and improve my code quality. I would appreciate it greatly if you could give my project a once over and maybe a light code review. There were quite a few tricky things in the project setup and some things I didn't quite understand but could get working with some tinkering. On Saturday, May 12, 2018 at 12:36:48 PM UTC-4, Felix Krause wrote: > On 2018-05-08 17:09:28 +0000, Michael Hardeman said: > > > > Hey Felix, I'm in the process of restructuring my project to add AUnit, > > based on your example, and I'm confused by this line. > > I in your code, what does this line do? > > > > https://github.com/yaml/AdaYaml/blob/develop/test/src/yaml-lexer-buffering_test.adb#L28 > > > > Nothing to worry about. AdaYaml uses reference-counted strings which > are allocated from a custom memory pool (which adds the reference > count), and this line initialises that pool. > > -- > Regards, > Felix Krause