Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/core/controller_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,8 @@ def Cfg__CreateAndAddTopLevelFile__USER(
if fileData.m_Path == newFilePath:
RaiseError.FileIsAlreadyRegistered(newFilePath)

continue

return __class__.Helper__FinishCreateTopLevelFile(cfgData, newFilePath)

# --------------------------------------------------------------------
Expand Down Expand Up @@ -436,6 +438,8 @@ def Cfg__GetOrCreateFile__USER(
if fileData.m_Path == newFilePath:
return fileData

continue

newFileData = PgCfgModel__FileData(cfgData, newFilePath)

__class__.Helper__RegFileInCfgData(cfgData, newFileData) # raise
Expand Down Expand Up @@ -482,6 +486,8 @@ def Helper__FindIndexOfFileLine(
if ptr is fileLineData:
return iFileLine

continue

assert iFileLine == cFileLines
return iFileLine

Expand All @@ -508,6 +514,8 @@ def Helper__FindIndexOfFileLineElement(
if ptr.m_Element is elementData:
return iItem

continue

assert iItem == cItems
return iItem

Expand Down Expand Up @@ -631,6 +639,8 @@ def Helper__DeleteFileIntoIndex(
if ptr is fileData:
break

continue

assert i >= 0
assert i <= len(indexItemData)

Expand Down Expand Up @@ -727,6 +737,8 @@ def Helper__DeleteOptionFromIndex(
if ptr is optionData:
break

continue

assert i >= 0
assert i <= len(data)

Expand Down
1 change: 1 addition & 0 deletions src/core/data_verificator.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def IsValidCommentText(text: str) -> bool:
for ch in text:
if ch in __class__.sm_InvalidCommentSymbols:
return False
continue

return True

Expand Down
1 change: 1 addition & 0 deletions src/core/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def DoesContainerContainsValue__NotNullAndExact(

if x == value:
return True
continue

return False

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def PrepareGetValue(self, ctx: OptionHandlerCtxToPrepareGetValue) -> typing.Any:

result.append(v)
index.add(v)
continue

return result

Expand Down
4 changes: 4 additions & 0 deletions src/core/write_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def Pack_StrList2(strList: list) -> str:
result += sep
result += __class__.Helper__PackStrListItem2(str(x))
sep = ","
continue

return result

Expand Down Expand Up @@ -63,6 +64,7 @@ def Pack_Str(text: str) -> str:
result += "\\\\"
else:
result += ch
continue

result += "'"

Expand All @@ -87,6 +89,7 @@ def Helper__PackStrListItem2(itemText: str) -> str:
result += '""'
else:
result += ch
continue

if needQuote:
result += '"'
Expand All @@ -111,6 +114,7 @@ def Helper__StrList__DoesItemNeedToQuote(itemText: str) -> bool:
return True
if ch == ",":
return True
continue


# //////////////////////////////////////////////////////////////////////////////
12 changes: 12 additions & 0 deletions src/implementation/v00/configuration_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2056,6 +2056,7 @@ def Helper__FindAndDeleteOption(
PgCfgModel__DataControllerUtils.Option__delete(
self.m_Data, optionData, True
)
continue

# [2025-01-02] It is expected
assert optionName not in allOptionsByName.keys()
Expand Down Expand Up @@ -2626,6 +2627,7 @@ def Helper__SetUniqueOptionValueItem__Common(
return PostgresConfigurationSetOptionValueResult_Base.Create__OptValueItemWasAlreadyDefined(
self, optionData
)
continue

# [2025-01-07] Postgres does not able to join multiple list
# TODO: We have to take into account overriding the values of postgresql.conf
Expand Down Expand Up @@ -2742,6 +2744,7 @@ def Helper__SetUniqueOptionPreparedValueItem__Exact(
optionData2.m_Name,
optionPreparedValueItem,
)
continue

# [2025-01-07] Postgres does not able to join multiple list
# TODO: We have to take into account overriding the values of postgresql.conf
Expand Down Expand Up @@ -2870,6 +2873,7 @@ def Helper__SetUniqueOptionValueItem__File(
RaiseError.OptionIsAlreadyExistInAnotherFile(
fileData2.m_Path, optionName
)
continue

BugCheckError.UnexpectedSituation(
C_BUGCHECK_SRC, "#001", "optionName=[{0}].".format(optionName)
Expand Down Expand Up @@ -3920,6 +3924,8 @@ def Helper__DoWork__Stage01__CreateFileContexts(
ctx.UpdFiles.append(fileCtx)
else:
BugCheckError.UnkFileDataStatus(fileData.m_Path, fileData.m_Status)
continue
return

# --------------------------------------------------------------------
@staticmethod
Expand All @@ -3939,6 +3945,8 @@ def Helper__DoWork__Stage02__MakeFileDataContents(
fileCtx.Content = __class__.Helper__MakeFileDataContent(
ctx, fileCtx.FileData
)
continue
return

# --------------------------------------------------------------------
@staticmethod
Expand Down Expand Up @@ -4078,6 +4086,8 @@ def Helper__DoWork__Stage05__WriteContents(

fileCtx.FileData.m_LastModifiedTimestamp = lastMDate
fileCtx.FileData.m_Status = PgCfgModel__FileStatus.EXISTS
continue
return

# --------------------------------------------------------------------
@staticmethod
Expand All @@ -4095,6 +4105,7 @@ def Helper__MakeFileDataContent(
assert type(lineContent) is str
fileContent += lineContent
fileContent += "\n"
continue

return fileContent

Expand Down Expand Up @@ -4133,6 +4144,7 @@ def Helper__FileLineToString(
lineContent, lineItem.m_Element.m_Offset, itemContent
)
assert type(lineContent) is str
continue

assert type(lineContent) is str
return lineContent
Expand Down
2 changes: 2 additions & 0 deletions tests/TestGlobalCache.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ def ReleaseAllResources():
resourceID, type(e).__name__, e
)
)
continue
return


# /////////////////////////////////////////////////////////////////////////////
6 changes: 6 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -782,6 +782,9 @@ def helper__print_test_list(tests: typing.List[str]) -> None:
assert t != ""
nTest += 1
logging.info(templateLine.format(nTest, t))
continue

return


# ------------------------------------------------------------------------
Expand Down Expand Up @@ -813,6 +816,9 @@ def helper__print_test_list2(tests: typing.List[T_TUPLE__str_int]) -> None:
assert t[1] >= 0
nTest += 1
logging.info(templateLine.format(nTest, t[0], t[1]))
continue

return


# /////////////////////////////////////////////////////////////////////////////
Expand Down