• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Scalr / terraform-provider-scalr / 19468430585

18 Nov 2025 01:47PM UTC coverage: 61.522% (-2.8%) from 64.37%
19468430585

push

github

web-flow
Merge pull request #476 from Scalr/SCALRCORE-36442

SCALRCORE-36442 Provider > Crash when importing system IAM role

169 of 339 new or added lines in 10 files covered. (49.85%)

330 existing lines in 13 files now uncovered.

8925 of 14507 relevant lines covered (61.52%)

247.16 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/internal/framework/datasource.go
1
package framework
2

3
import (
4
        "context"
5
        "fmt"
6

7
        "github.com/hashicorp/terraform-plugin-framework/datasource"
8

9
        "github.com/scalr/go-scalr"
10
)
11

12
type DataSourceWithScalrClient struct {
13
        Client *scalr.Client
14
}
15

UNCOV
16
func (d *DataSourceWithScalrClient) Configure(_ context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) {
×
UNCOV
17
        if req.ProviderData == nil {
×
UNCOV
18
                return
×
UNCOV
19
        }
×
20

UNCOV
21
        c, ok := req.ProviderData.(*scalr.Client)
×
UNCOV
22
        if !ok {
×
23
                resp.Diagnostics.AddError(
×
24
                        "Unexpected Data Source Configure Type",
×
25
                        fmt.Sprintf("Expected *scalr.Client, got: %T. Please report this issue to the provider developers.", req.ProviderData),
×
26
                )
×
27

×
28
                return
×
29
        }
×
30

UNCOV
31
        d.Client = c
×
32
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc