@@ -1332,13 +1332,11 @@ func TestCopilotService_GetEnterpriseMetrics(t *testing.T) {
13321332 t .Errorf ("Copilot.GetEnterpriseMetrics returned error: %v" , err )
13331333 }
13341334
1335- totalActiveUsers := 24
1336- totalEngagedUsers := 20
13371335 want := []* CopilotMetrics {
13381336 {
13391337 Date : "2024-06-24" ,
1340- TotalActiveUsers : & totalActiveUsers ,
1341- TotalEngagedUsers : & totalEngagedUsers ,
1338+ TotalActiveUsers : Ptr ( 24 ) ,
1339+ TotalEngagedUsers : Ptr ( 20 ) ,
13421340 CopilotIDECodeCompletions : & CopilotIDECodeCompletions {
13431341 TotalEngagedUsers : 20 ,
13441342 Languages : []* CopilotIDECodeCompletionsLanguage {
@@ -1675,13 +1673,11 @@ func TestCopilotService_GetEnterpriseTeamMetrics(t *testing.T) {
16751673 t .Errorf ("Copilot.GetEnterpriseTeamMetrics returned error: %v" , err )
16761674 }
16771675
1678- totalActiveUsers := 24
1679- totalEngagedUsers := 20
16801676 want := []* CopilotMetrics {
16811677 {
16821678 Date : "2024-06-24" ,
1683- TotalActiveUsers : & totalActiveUsers ,
1684- TotalEngagedUsers : & totalEngagedUsers ,
1679+ TotalActiveUsers : Ptr ( 24 ) ,
1680+ TotalEngagedUsers : Ptr ( 20 ) ,
16851681 CopilotIDECodeCompletions : & CopilotIDECodeCompletions {
16861682 TotalEngagedUsers : 20 ,
16871683 Languages : []* CopilotIDECodeCompletionsLanguage {
@@ -2018,13 +2014,11 @@ func TestCopilotService_GetOrganizationMetrics(t *testing.T) {
20182014 t .Errorf ("Copilot.GetOrganizationMetrics returned error: %v" , err )
20192015 }
20202016
2021- totalActiveUsers := 24
2022- totalEngagedUsers := 20
20232017 want := []* CopilotMetrics {
20242018 {
20252019 Date : "2024-06-24" ,
2026- TotalActiveUsers : & totalActiveUsers ,
2027- TotalEngagedUsers : & totalEngagedUsers ,
2020+ TotalActiveUsers : Ptr ( 24 ) ,
2021+ TotalEngagedUsers : Ptr ( 20 ) ,
20282022 CopilotIDECodeCompletions : & CopilotIDECodeCompletions {
20292023 TotalEngagedUsers : 20 ,
20302024 Languages : []* CopilotIDECodeCompletionsLanguage {
@@ -2361,13 +2355,11 @@ func TestCopilotService_GetOrganizationTeamMetrics(t *testing.T) {
23612355 t .Errorf ("Copilot.GetOrganizationTeamMetrics returned error: %v" , err )
23622356 }
23632357
2364- totalActiveUsers := 24
2365- totalEngagedUsers := 20
23662358 want := []* CopilotMetrics {
23672359 {
23682360 Date : "2024-06-24" ,
2369- TotalActiveUsers : & totalActiveUsers ,
2370- TotalEngagedUsers : & totalEngagedUsers ,
2361+ TotalActiveUsers : Ptr ( 24 ) ,
2362+ TotalEngagedUsers : Ptr ( 20 ) ,
23712363 CopilotIDECodeCompletions : & CopilotIDECodeCompletions {
23722364 TotalEngagedUsers : 20 ,
23732365 Languages : []* CopilotIDECodeCompletionsLanguage {
0 commit comments