Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typed attributes #446

Merged
merged 23 commits into from
Apr 26, 2024

feat(cli) bump go version to 1.21

0236b6e
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Typed attributes #446

feat(cli) bump go version to 1.21
0236b6e
Select commit
Loading
Failed to load commit list.
GitHub Actions / CLI Tests Report succeeded Apr 25, 2024 in 1s

418 passed, 0 failed and 0 skipped

Tests passed successfully

✅ ./CLI/tests-cli.xml

418 tests were completed in 7s with 418 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
cli 124✅ 180ms
cli/commands 0ms
cli/config 0ms
cli/controllers 236✅ 66ms
cli/logger 0ms
cli/models 32✅ 8ms
cli/utils 18✅ 5ms
cli/views 8✅ 4ms

✅ cli

✅ TestValueNodeExecute
✅ TestAstExecute
✅ TestFuncDefNodeExecute
✅ TestFuncCallNodeExecute
✅ TestFuncCallNodeExecuteUndefinedFunction
✅ TestArrNodeExecute
✅ TestLenNodeExecute
✅ TestCdNodeExecute
✅ TestLsNodeExecute
✅ TestGetUNodeExecute
✅ TestGetSlotNodeExecute
✅ TestPrintNodeExecute
✅ TestDeleteObjNodeExecute
✅ TestDeleteSelectionNodeExecute
✅ TestIsEntityDrawableNodeExecute
✅ TestIsAttrDrawableNodeExecute
✅ TestGetObjectNodeExecute
✅ TestSelectObjectNodeExecuteOnePath
✅ TestSelectObjectNodeExecuteReset
✅ TestSetRoomAreas
✅ TestSetLabel
✅ TestAddToStringMap
✅ TestRemoveFromStringMap
✅ TestAddRoomSeparatorError
✅ TestAddRoomSeparator
✅ TestAddRoomPillarError
✅ TestAddRoomPillar
✅ TestDeleteRoomPillarOrSeparatorInvalidArgument
✅ TestDeleteRoomPillarOrSeparatorSeparatorDoesNotExist
✅ TestDeleteRoomPillarOrSeparatorSeparator
✅ TestDeleteRoomPillarOrSeparatorPillar
✅ TestUpdateObjNodeExecuteUpdateDescription
✅ TestEqualityNodeExecute
✅ TestComparatorNodeExecute
✅ TestLogicalNodeExecute
✅ TestNegateBoolNodeExecute
✅ TestIfNodeExecute
✅ TestWhileNodeExecute
✅ TestForNodeExecute
✅ TestForArrayNodeExecuteError
✅ TestForRangeNodeExecute
✅ TestForRangeNodeExecuteError
✅ TestArithNodeExecute
✅ TestNegateNodeExecute
✅ TestPathNode
✅ TestFormatStringNodeExecute
✅ TestNodeToFloat
✅ TestNodeToNum
✅ TestNodeToInt
✅ TestNodeToBool
✅ TestNodeTo3dRotation
✅ TestNodeToString
✅ TestNodeToVec
✅ TestNodeToColorString
✅ TestFileToJson
✅ TestEvalNodeArr
✅ TestErrorResponder
✅ TestFiltersToMapString
✅ TestRecursiveArgsToParams
✅ TestStringToIntOr
✅ TestAddSizeOrTemplate
✅ TestNodeToSize
✅ TestNodeToPosXYZ
✅ TestTokenTypeString
✅ TestTokenTypePrecedence
✅ TestLex
✅ TestLexDoubleDot
✅ TestLexFormattedString
✅ TestParserParseExprToken
✅ TestFileParseErrorError
✅ TestAddLineError
✅ TestParseFileError
✅ TestParseFile
✅ TestNewStackTraceError
✅ TestLoadFile
✅ TestLoadFileParseError
✅ TestLoadFileStackError
✅ TestParseExact
✅ TestParseWord
✅ TestParsePathGroup
✅ TestParseWordSingleLetter
✅ TestParseArgs
✅ TestParseExpr
✅ TestParseExprRange
✅ TestParseExprCompare
✅ TestParseExprString
✅ TestParseExprArrayRef
✅ TestParseRawText
✅ TestParseString
✅ TestParseAssign
✅ TestParseLs
✅ TestParseLsRecursive
✅ TestParseLsComplexFilter
✅ TestSimpleCommands
✅ TestParseUpdate
✅ TestSequence
✅ TestFor
✅ TestIf
✅ TestElif
✅ TestParseUrl
✅ TestParseIntError
✅ TestParseFloat
✅ TestParseBoolError
✅ TestParseIndexing
✅ TestParseEnv
✅ TestParseLink
✅ TestParseUnlink
✅ TestParseAlias
✅ TestParseCreateDomain
✅ TestParseCreateTag
✅ TestParseCreateLayer
✅ TestParseCreateOrphan
✅ TestParseCreateUser
✅ TestParseAddRole
✅ TestParseCp
✅ TestParseExprList
✅ TestParseLsStarError
✅ TestParseLsPathError
✅ TestParseDrawable
✅ TestParseUnsetVariable
✅ TestParseUnsetFunction
✅ TestParseUnsetAttribute
✅ TestParseTree
✅ TestParseConnect3D

✅ cli/controllers

✅ TestConnect3DReturnsErrorIfProvidedURLIsInvalid
✅ TestConnect3DDoesNotConnectIfOgree3DIsUnreachable
✅ TestConnect3DConnectsToProvidedURL
✅ TestConnect3DConnectsToStateOgreeURLIfNotProvidedURL
✅ TestConnect3DReturnsErrorIfAlreadyConnectedAndNotUrlProvided
✅ TestConnect3DReturnsErrorIfAlreadyConnectedAndSameUrlProvided
✅ TestConnect3DTriesToConnectIfAlreadyConnectedAndDifferentUrlProvided
✅ TestConnect3DConnectsIfAlreadyConnectedAndDifferentUrlProvidedIsReachable
✅ TestInformOgree3DOptionalDoesNothingIfOgree3DNotConnected
✅ TestInformOgree3DOptionalSendDataWhenOgree3DIsConnected
✅ TestInformOgree3DFailsIfOgree3DNotReachable
✅ TestInformOgree3DEstablishConnectionIfOgree3DIsReachable
✅ TestInformOgree3DSendsDataIfEstablishConnectionWithOgree3DAlreadyEstablished
✅ TestCdToALayer
✅ TestCdObjectNotFound
✅ TestCdWorks
✅ TestPWD
✅ TestObjectUrlInvalidPath
✅ TestObjectUrlPaths
✅ TestObjectUrlGenericInvalidPath
✅ TestObjectUrlGenericWithNoFilters
✅ TestObjectUrlGenericWithNormalFilters
✅ TestObjectUrlGenericWithFilterField
✅ TestGetSlotWithNoTemplate
✅ TestGetSlotWithTemplateNonExistentSlot
✅ TestGetSlotWithTemplateWorks
✅ TestUnsetAttributeObjectNotFound
✅ TestUnsetAttributeWorks
✅ TestUnsetInObjInvalidIndex
✅ TestUnsetInObjObjectNotFound
✅ TestUnsetInObjAttributeNotFound
✅ TestUnsetInObjAttributeNotAnArray
✅ TestUnsetInObjEmptyArray
✅ TestUnsetInObjWorksWithNestedAttribute
✅ TestUnsetInObjWorksWithAttribute
✅ TestGetByAttrErrorWhenObjIsNotRack
✅ TestGetByAttrErrorWhenObjIsRackWithSlotName
✅ TestGetByAttrErrorWhenObjIsRackWithHeight
✅ TestUIDelay
✅ TestUIToggle
✅ TestUIHighlightObjectNotFound
✅ TestUIHighlightWorks
✅ TestUIClearCache
✅ TestCameraMove
✅ TestCameraWait
✅ TestFocusUIObjectNotFound
✅ TestFocusUIEmptyPath
✅ TestFocusUIErrorWithRoom
✅ TestFocusUIWorks
✅ TestLinkObjectErrorNotStaryObject
✅ TestLinkObjectWithoutSlots
✅ TestLinkObjectWithInvalidSlots
✅ TestLinkObjectWithValidSlots
✅ TestUnlinkObjectWithInvalidPath
✅ TestUnlinkObjectWithValidPath
✅ TestIsEntityDrawableObjectNotFound
✅ TestIsEntityDrawableCategoryIsNotDrawable
✅ TestIsEntityDrawableWorks
✅ TestIsAttrDrawableObjectNotFound
✅ TestIsAttrDrawableTemplateJsonIsNil
✅ TestIsAttrDrawableSpecialAttribute
✅ TestIsAttrDrawableDefaultAttribute
✅ TestCreateUserInvalidEmail
✅ TestCreateUserWorks
✅ TestAddRoleUserNotFound
✅ TestAddRoleWorks
✅ TestCpObjectThatIsNotALayerCantBeCopied
✅ TestCpLayerWithDestPathCopiesSource
✅ TestCpLayerWithDestSlugCopiesSource
✅ TestCpLayerWhenSourceIsCachedCopiesSource
✅ TestCreateObjectInvalidPath
✅ TestCreateObjectErrorParentNotFound
✅ TestCreateObjectWithNotExistentTemplateReturnsError
✅ TestCreateObjectWithTemplateOfIncorrectCategoryReturnsError
✅ TestCreateGenericWithoutTemplateWorks
✅ TestCreateGenericWithTemplateWorks
✅ TestCreateDomain
✅ TestCreateBuildingInvalidSize
✅ TestCreateBuildingInvalidPosXY
✅ TestCreateBuilding
✅ TestCreateRoomInvalidSize
✅ TestCreateRoomInvalidPosXY
✅ TestCreateRoom
✅ TestCreateRackInvalidSize
✅ TestCreateRack
✅ TestCreateDevice
✅ TestCreateDeviceWithSizeU
✅ TestCreateGroup
✅ TestCreateTag
✅ TestDeleteTag
✅ TestGetWithFilters
✅ TestGetStarWithFilters
✅ TestGetSomethingStarWithFilters
✅ TestGetWithComplexFilters
✅ TestGetRecursiveSearchAllChildrenCalledInThatWay
✅ TestGetRecursiveWithFilters
✅ TestGetStarRecursiveWithFilters
✅ TestGetSomethingStarRecursiveWithFilters
✅ TestGetFolderSomethingStarRecursiveWithFilters
✅ TestGetPointRecursiveIsEqualToNotRecursive
✅ TestLabelNotStringReturnsError
✅ TestNonExistingAttrReturnsError
✅ TestLabelStringOk
✅ TestLabelSingleAttrOk
✅ TestLabelStringWithOneAttrOk
✅ TestLabelStringWithMultipleAttrOk
✅ TestLabelSingleAttrAndStringOk
✅ TestLabelSingleAttrAndStringWithAttrOk
✅ TestLabelFontItalicOk
✅ TestLabelFontBoldOk
✅ TestLabelColorOk
✅ TestLabelBackgroundOk
✅ TestContentOk
✅ TestAlphaOk
✅ TestTilesNameOk
✅ TestTilesColorOk
✅ TestUOk
✅ TestSlotsOk
✅ TestLocalCSOk
✅ TestLsOnARoomShowsRacksIfAnyObjectIsRack
✅ TestLsOnARoomShowsCorridorsIfAnyObjectIsCorridor
✅ TestLsOnARoomShowsGroupsIfAnyObjectIsGroup
✅ TestLsOnARoomShowsGenericsAndGenericsByTypeIfAnyObjectIsGeneric
✅ TestLsOnARoomWithAllChildrenShowsAllLayers
✅ TestLsOnARackShowsGroupsIfAnyObjectIsGroup
✅ TestLsOnARackShowsOneLayerForEachTypeOfDevice
✅ TestLsOnRacksLayerShowsRacks
✅ TestLsOnGroupLayerShowsGroups
✅ TestLsOnCorridorsLayerShowsCorridors
✅ TestLsOnGenericLayerShowsGeneric
✅ TestLsOnDeviceTypeLayerShowsDevicesOfThatType
✅ TestLsOnGenericTypeLayerShowsDevicesOfThatType
✅ TestLsOnLayerChildWorks
✅ TestLsOnNestedLayerWorks
✅ TestGetOnRacksLayerGetsRacksAttributes
✅ TestGetOnCorridorsLayerGetsCorridorsAttributes
✅ TestGetOnGroupLayerGetsGroupsAttributes
✅ TestGetOnAllLayerGetsAllAttributes
✅ TestGetOnWildcardLayerGetsAttributes
✅ TestGetOnLayerChildGetsAttributes
✅ TestGetOnNestedLayerGetsAttributes
✅ TestTreeOnLayerFails
✅ TestTreeOnNestedLayerFails
✅ TestTreeOnLayerChildWorks
✅ TestTreeOnNestedLayerChildWorks
✅ TestCdOnLayerFails
✅ TestCdOnNestedLayerFails
✅ TestCdOnLayerChildWorks
✅ TestCdOnLayerGrandChildWorks
✅ TestCdOnNestedLayerChildWorks
✅ TestSelectLayerSelectsAll
✅ TestSelectGroupsLayerSelectsAll
✅ TestSelectLayerAllSelectsAll
✅ TestSelectLayerWildcardSelectsWildcard
✅ TestSelectLayerChildSelectsChild
✅ TestSelectNestedLayerSelectsAll
✅ TestRemoveLayerRemovesAllObjectsOfTheLayer
✅ TestDrawLayerDrawsAllObjectsOfTheLayer
✅ TestDrawLayerWithDepthDrawsAllObjectsOfTheLayerAndChildren
✅ TestUndrawLayerUndrawAllObjectsOfTheLayer
✅ TestTranslateApplicabilityReturnsErrorIfPathIsRoot
✅ TestTranslateApplicabilityReturnsErrorIfPathIsNotHierarchical
✅ TestTranslateApplicabilityTransformsPhysicalSlashIntoEmpty
✅ TestTranslateApplicabilityCleansPathOfLastSlash
✅ TestTranslateApplicabilityCleansPathOfSlashPointAtEnd
✅ TestTranslateApplicabilityCleansPathOfSlashPoint
✅ TestTranslateApplicabilityTransformsPhysicalPathIntoID
✅ TestTranslateApplicabilitySupportsPointPointAtTheEnd
✅ TestTranslateApplicabilitySupportsPointPoint
✅ TestTranslateApplicabilitySupportsStarAtTheEnd
✅ TestTranslateApplicabilitySupportsStarStarAtTheEnd
✅ TestTranslateApplicabilitySupportsStar
✅ TestTranslateApplicabilitySupportsStarStar
✅ TestTranslateApplicabilityEmptyReturnsCurrPath
✅ TestTranslateApplicabilityPointReturnsCurrPath
✅ TestTranslateApplicabilityPointReturnsErrorIfCurrPathIsNotHierarchical
✅ TestTranslateApplicabilityPointReturnsEmptyIfCurrPathIsSlashPhysical
✅ TestTranslateApplicabilityPointPathReturnsCurrPathPlusPath
✅ TestTranslateApplicabilityRelativePathReturnsCurrPathPlusPath
✅ TestTranslateApplicabilityRelativePathStarReturnsCurrPathPlusPath
✅ TestTranslateApplicabilityRelativePathReturnsErrorIfCurrPathIsNotHierarchical
✅ TestTranslateApplicabilityPointPointReturnsBeforeCurrPath
✅ TestTranslateApplicabilityPointPointReturnsEmptyIfBeforeCurrPathIsPhysical
✅ TestTranslateApplicabilityPointPointReturnsErrorIfBeforeCurrPathIsNotHierarchical
✅ TestTranslateApplicabilityPointPointPathReturnsCurrPathPlusPath
✅ TestTranslateApplicabilityPointPointTwoTimes
✅ TestTranslateApplicabilityMinusReturnsPrevPath
✅ TestTranslateApplicabilityMinusPathReturnsPrevPathPlusPath
✅ TestTranslateApplicabilityUnderscorePathReturnsCurrPathPlusUnderscore
✅ TestTranslateApplicabilityReturnsErrorIfPatternIsNotValid
✅ TestLsNowShowLayerIfNotMatch
✅ TestLsShowLayerIfPerfectMatch
✅ TestLsShowLayerIfPerfectMatchOnPhysical
✅ TestLsShowLayerIfPerfectMatchOnPhysicalChild
✅ TestLsShowLayerIfPerfectMatchOnPhysicalChildWhenItsCached
✅ TestLsShowLayerIfMatchWithStar
✅ TestLsShowLayerIfMatchWithSomethingStar
✅ TestLsNotShowLayerIfNotMatchWithStar
✅ TestLsShowLayerIfMatchWithDoubleStar
✅ TestLsShowLayerIfMatchWithDoubleStarAndMore
✅ TestLsNotShowLayerIfNotMatchWithDoubleStar
✅ TestLsNotShowLayerIfNotMatchWithDoubleStarAndMore
✅ TestLsReturnsLayerCreatedAfterLastUpdate
✅ TestLsReturnsLayerCreatedAndUpdatedAfterLastUpdate
✅ TestLsOnLayerUpdatedAfterLastUpdateDoesUpdatedFilter
✅ TestLsOnUserDefinedLayerAppliesFilters
✅ TestLsRecursiveOnLayerListLayerRecursive
✅ TestGetRecursiveOnLayerReturnsLayerRecursive
✅ TestLsOnElementAsksForLayersIfTheyHaveNeverBeenLoaded
✅ TestLsOnElementNotAsksForLayersIfTheyAreUpdated
✅ TestLsOnElementAsksForLayersIfTheyAreNotUpdated
✅ TestLsWithFilters
✅ TestLsWithComplexFilters
✅ TestLsRecursiveReturnsError
✅ TestLsRecursiveWithFilters
✅ TestLsPointRecursiveMaxLessThatMinReturnsError
✅ TestLsRecursiveWithMinButNotMax
✅ TestLsRecursiveWithMinAndMax
✅ TestMergeMaps
✅ TestGenerateFilteredJson
✅ TestStringify
✅ TestExpandSlotVector
✅ TestCreateTemplateOfTypeGenericWorks
✅ TestApplyTemplateOfTypeDeviceWorks
✅ TestApplyTemplateOfTypeDeviceError
✅ TestApplyTemplateOfTypeRoomWorks
✅ TestLoadTemplateRoom
✅ TestLoadTemplateBuilding
✅ TestLoadTemplateInvalidCategory
✅ TestUpdateTagColor
✅ TestUpdateTagSlug
✅ TestUpdateRoomTilesColor
✅ TestUpdateRoomTilesName
✅ TestUpdateRackU
✅ TestUpdateDeviceAlpha
✅ TestUpdateGroupContent

✅ cli/models

✅ TestDisconnectInReceiveLoop
✅ TestErrorInSendAndDisconnectInReceiveLoop
✅ TestEntityToString
✅ TestEntityStrToInt
✅ TestGetParentOfEntity
✅ TestAutomaticLayerName
✅ TestAutomaticLayerApplyFilters
✅ TestUserDefinedLayerName
✅ TestUserDefinedLayerMatches
✅ TestUserDefinedLayerApplyFilters
✅ TestLayerByCategoryFromObjects
✅ TestLayerByAttributeFromObjects
✅ TestIsIDElementLayer
✅ TestIsObjectIDLayer
✅ TestPathIsLayer
✅ TestPathHasLayer
✅ TestPathRemoveLayer
✅ TestMakeRecursive
✅ TestIsPhysical
✅ TestIsStray
✅ TestIsObjectTemplate
✅ TestIsRoomTemplate
✅ TestIsBuildingTemplate
✅ TestIsTag
✅ TestIsLayer
✅ TestIsGroup
✅ TestSplitPath
✅ TestJoinPath
✅ TestPhysicalPathToObjectID
✅ TestPhysicalIDToPath
✅ TestPathRemoveLast
✅ TestObjectIDToRelativePath

✅ cli/utils

✅ TestGetFloat
✅ TestValToFloat
✅ TestStringToNum
✅ TestValToNum
✅ TestValToInt
✅ TestValToBool
✅ TestValTo3dRotation
✅ TestValToString
✅ TestValToVec
✅ TestValToColor
✅ TestIsInfArr
✅ TestIsString
✅ TestIsHexString
✅ TestIsInt
✅ TestIsFloat
✅ TestCompareVals
✅ TestNameOrSlug
✅ TestObjectAttr

✅ cli/views

✅ TestLsShowsLayersAtTheEnd
✅ TestLsWithRelativePathOrdersByThePath
✅ TestLsWithRelativePathOnObjectsWithSlugsOrdersBySlug
✅ TestLsWithFormatRemoveLayers
✅ TestLsWithFormatOrdersByAttributeAndRemoveLayers
✅ TestLsWithFormatWithRelativePathOrdersByAttribute
✅ TestLsWithFormatWithoutSortAttrOrdersByName
✅ TestLsWithFormatWithRelativePathWithoutSortAttrOrdersById