Skip to content

Commit

Permalink
chore: update coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
jimlambrt committed Sep 29, 2023
1 parent c8dd1fa commit e9a6b6a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
30 changes: 28 additions & 2 deletions coverage/coverage.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@

<option value="file22">github.com/jimlambrt/gldap/testdirectory/testingt.go (100.0%)</option>

<option value="file23">github.com/jimlambrt/gldap/testing.go (98.5%)</option>
<option value="file23">github.com/jimlambrt/gldap/testing.go (96.4%)</option>

</select>
</div>
Expand Down Expand Up @@ -4168,7 +4168,8 @@
d.logger.Debug("not using TLS")
}</span>
<span class="cov8" title="1">go func() </span><span class="cov8" title="1">{
_ = d.s.Run(fmt.Sprintf("%s:%d", opts.withHost, opts.withPort), connOpts...)
err := d.s.Run(fmt.Sprintf("%s:%d", opts.withHost, opts.withPort), connOpts...)
require.NoError(err)
}</span>()

<span class="cov8" title="1">if v, ok := interface{}(t).(CleanupT); ok </span><span class="cov8" title="1">{
Expand Down Expand Up @@ -5475,6 +5476,7 @@
"net"
"os"
"strings"
"sync"
"testing"

ber "github.com/go-asn1-ber/asn1-ber"
Expand Down Expand Up @@ -5718,6 +5720,30 @@
require.NoError(t, err)
return string(dec.Bytes())
}</span>

type safeBuf struct {
buf *strings.Builder
mu *sync.Mutex
}

func testSafeBuf(t *testing.T) *safeBuf <span class="cov8" title="1">{
t.Helper()
return &amp;safeBuf{
mu: &amp;sync.Mutex{},
buf: &amp;strings.Builder{},
}
}</span>
func (w *safeBuf) Write(p []byte) (n int, err error) <span class="cov8" title="1">{
w.mu.Lock()
defer w.mu.Unlock()
return w.buf.Write(p)
}</span>

func (w *safeBuf) String() string <span class="cov0" title="0">{
w.mu.Lock()
defer w.mu.Unlock()
return w.buf.String()
}</span>
</pre>

</div>
Expand Down
1 change: 1 addition & 0 deletions coverage/coverage.log
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
1695973415,88.6
1696020265,88.5
2 changes: 1 addition & 1 deletion coverage/coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e9a6b6a

Please sign in to comment.