Skip to content

Commit

Permalink
add coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
RayMario committed Sep 16, 2023
1 parent 02f8e0e commit 7f79e16
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 8 deletions.
33 changes: 29 additions & 4 deletions pkg/trace/jaeger/jaeger_test.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,39 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package jaeger

import (
"context"
"github.com/arana-db/arana/pkg/config"
"github.com/arana-db/arana/pkg/proto"
"github.com/arana-db/arana/pkg/proto/hint"
"testing"
)

import (
"github.com/golang/mock/gomock"

"github.com/stretchr/testify/assert"

"go.opentelemetry.io/otel"
"testing"
)

import (
"github.com/arana-db/arana/pkg/config"
"github.com/arana-db/arana/pkg/proto"
"github.com/arana-db/arana/pkg/proto/hint"
)

func TestJaegerProvider(t *testing.T) {
Expand Down
32 changes: 28 additions & 4 deletions pkg/trace/trace_test.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,38 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package trace

import (
"context"
"sync"
"testing"
)

import (
"github.com/golang/mock/gomock"

"github.com/stretchr/testify/assert"
)

import (
"github.com/arana-db/arana/pkg/config"
"github.com/arana-db/arana/pkg/proto"
"github.com/arana-db/arana/pkg/proto/hint"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
"sync"
"testing"
)

type TestProvider struct{}
Expand Down

0 comments on commit 7f79e16

Please sign in to comment.