mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-10 04:20:24 +00:00
working with k8s, stripe, petstore and locals. Speed is as good as I can make it at this point, not without further performance tunupes for memory consumption. less copying everywhere.
19 lines
448 B
Go
19 lines
448 B
Go
// Copyright 2022 Princess B33f Heavy Industries / Dave Shanley
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package datamodel
|
|
|
|
import (
|
|
"github.com/stretchr/testify/assert"
|
|
"testing"
|
|
)
|
|
|
|
func TestSpecInfo_GetJSONParsingChannel(t *testing.T) {
|
|
|
|
// dumb, but we need to ensure coverage is as high as we can make it.
|
|
bchan := make(chan bool)
|
|
si := &SpecInfo{JsonParsingChannel: bchan}
|
|
assert.Equal(t, si.GetJSONParsingChannel(), bchan)
|
|
|
|
}
|