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

localstack / localstack / 21765279428

06 Feb 2026 08:43PM UTC coverage: 73.535% (-13.3%) from 86.871%
21765279428

Pull #13716

github

web-flow
Merge 0f5988375 into 20cc1b384
Pull Request #13716: Events: improve Store IAM Statement typing

6 of 6 new or added lines in 1 file covered. (100.0%)

9920 existing lines in 273 files now uncovered.

56187 of 76409 relevant lines covered (73.53%)

0.74 hits per line

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

64.29
/localstack-core/localstack/services/ec2/models.py
1
from moto.ec2 import ec2_backends
1✔
2
from moto.ec2.models import EC2Backend
1✔
3
from moto.ec2.models.subnets import Subnet
1✔
4

5

6
def get_ec2_backend(account_id: str, region: str) -> EC2Backend:
1✔
7
    return ec2_backends[account_id][region]
1✔
8

9

10
#
11
# Pickle patches
12
#
13

14

15
def set_state(self, state):
1✔
16
    state["_subnet_ip_generator"] = state["cidr"].hosts()
×
17
    self.__dict__.update(state)
×
18

19

20
def get_state(self):
1✔
UNCOV
21
    state = self.__dict__.copy()
×
UNCOV
22
    state.pop("_subnet_ip_generator", None)
×
UNCOV
23
    return state
×
24

25

26
Subnet.__setstate__ = set_state
1✔
27
Subnet.__getstate__ = get_state
1✔
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