Skip to content

Push on main

Push on main #29

GitHub Actions / test-results succeeded May 9, 2024 in 1s

130 passed, 0 failed and 0 skipped

Tests passed successfully

✅ /home/runner/work/Htmxor/Htmxor/TestResults/_fv-az1240-38_2024-05-09_18_12_02.trx

130 tests were completed in 8s with 130 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Htmxor.Builder.HtmxorComponentEndpointDataSourceTest 1✅ 97ms
Htmxor.Builder.HtmxorComponentEndpointMatcherPolicyTest 22✅ 288ms
Htmxor.Configuration.HtmxHeadOutletTest 2✅ 976ms
Htmxor.DemoTestCases.BulkUpdate1Test 1✅ 752ms
Htmxor.DemoTestCases.ClickToEdit1Test 5✅ 3s
Htmxor.DemoTestCases.DeleteRowTest 1✅ 461ms
Htmxor.DemoTestCases.HxValsTest 1✅ 732ms
Htmxor.E2E.ClickToEditE2ETests 1✅ 331ms
Htmxor.E2E.EventHandlerE2ETest 1✅ 489ms
Htmxor.EventHandlerTest 7✅ 4s
Htmxor.HtmxorComponentRequestHostTest 42✅ 26s
Htmxor.Http.HtmxResponseTests 26✅ 723ms
Htmxor.Http.SwapStyleBuilderTests 18✅ 120ms
Htmxor.RequestRoutingTest 2✅ 1s

✅ Htmxor.Builder.HtmxorComponentEndpointDataSourceTest

✅ Registers_endpoints_based_on_HxRoute

✅ Htmxor.Builder.HtmxorComponentEndpointMatcherPolicyTest

✅ AppliesToEndpoints_with_hxroute_endpoint
✅ AppliesToEndpoints_with_route_only_endpoint
✅ ApplyAsync_HxRequest_HxEndpoint
✅ ApplyAsync_HxRequest_HxEndpoint_matching(hxRouteAttribute: HtmxRouteAttribute { CurrentURL = "/foo", Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Current-URL", "/foo")])
✅ ApplyAsync_HxRequest_HxEndpoint_matching(hxRouteAttribute: HtmxRouteAttribute { CurrentURL = "/foo", Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Current-URL", "/FOO")])
✅ ApplyAsync_HxRequest_HxEndpoint_matching(hxRouteAttribute: HtmxRouteAttribute { CurrentURL = "/FOO", Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Current-URL", "/foo")])
✅ ApplyAsync_HxRequest_HxEndpoint_matching(hxRouteAttribute: HtmxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = "#foo", Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Target", "#foo")])
✅ ApplyAsync_HxRequest_HxEndpoint_matching(hxRouteAttribute: HtmxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = "#foo", Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Target", "#FOO")])
✅ ApplyAsync_HxRequest_HxEndpoint_matching(hxRouteAttribute: HtmxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = ["#foo", "#bar"], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Target", "#BAR")])
✅ ApplyAsync_HxRequest_HxEndpoint_matching(hxRouteAttribute: HtmxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = ["#foo", "#bar"], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Target", "#foo")])
✅ ApplyAsync_HxRequest_HxEndpoint_matching(hxRouteAttribute: HtmxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = [], Template = "/", ··· }, requestHeaders: [])
✅ ApplyAsync_HxRequest_HxEndpoint_matching(hxRouteAttribute: HtmxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Trigger-Name", "#foo")])
✅ ApplyAsync_HxRequest_HxEndpoint_matching(hxRouteAttribute: HtmxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Trigger-Name", "#FOO")])
✅ ApplyAsync_HxRequest_HxEndpoint_matching(hxRouteAttribute: HtmxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Trigger", "#foo")])
✅ ApplyAsync_HxRequest_HxEndpoint_matching(hxRouteAttribute: HtmxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Trigger", "#FOO")])
✅ ApplyAsync_HxRequest_HxEndpoint_none_matching(hxRouteAttribute: HtmxRouteAttribute { CurrentURL = "/foo", Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Current-URL", "/bar")])
✅ ApplyAsync_HxRequest_HxEndpoint_none_matching(hxRouteAttribute: HtmxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = "#foo", Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Target", "#bar")])
✅ ApplyAsync_HxRequest_HxEndpoint_none_matching(hxRouteAttribute: HtmxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = ["#foo", "#bar"], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Target", "#baz")])
✅ ApplyAsync_HxRequest_HxEndpoint_none_matching(hxRouteAttribute: HtmxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Trigger-Name", "#bar")])
✅ ApplyAsync_HxRequest_HxEndpoint_none_matching(hxRouteAttribute: HtmxRouteAttribute { CurrentURL = null, Methods = ["GET", "POST", "PUT", "PATCH", "DELETE"], Target = null, Targets = [], Template = "/", ··· }, requestHeaders: [Tuple ("HX-Trigger", "#bar")])
✅ ApplyAsync_HxRequest_RouteEndpoint
✅ ApplyAsync_RouteRequest_HxEndpoint

✅ Htmxor.Configuration.HtmxHeadOutletTest

✅ HtmxConfig_default_swap_style_serializer
✅ HtmxConfig_serializer

✅ Htmxor.DemoTestCases.BulkUpdate1Test

✅ Hx_post_with_partial_return

✅ Htmxor.DemoTestCases.ClickToEdit1Test

✅ Hx_get_edit
✅ Hx_get_view
✅ Hx_put_view
✅ None_hx_get_edit
✅ None_hx_get_view

✅ Htmxor.DemoTestCases.DeleteRowTest

✅ Hx_delete_returns_204_without_content

✅ Htmxor.DemoTestCases.HxValsTest

✅ HxVals_correctly_escaped_by_renderer

✅ Htmxor.E2E.ClickToEditE2ETests

✅ Click_to_edit

✅ Htmxor.E2E.EventHandlerE2ETest

✅ Invoke_event_handler_methods

✅ Htmxor.EventHandlerTest

✅ Delete_method_htmxor_event_handler
✅ Get_lambda_htmxor_event_handler
✅ Get_method_htmxor_event_handler
✅ Patch_method_htmxor_event_handler
✅ Post_method_htmxor_event_handler
✅ Put_method_htmxor_event_handler
✅ Submit_form_htmxor_event_handler

✅ Htmxor.HtmxorComponentRequestHostTest

✅ Route_values_in_component<Boolean>(isHtmxRequest: False, id: "boolValue", value: False)
✅ Route_values_in_component<Boolean>(isHtmxRequest: False, id: "boolValue", value: True)
✅ Route_values_in_component<Boolean>(isHtmxRequest: True, id: "boolValue", value: False)
✅ Route_values_in_component<Boolean>(isHtmxRequest: True, id: "boolValue", value: True)
✅ Route_values_in_component<Double>(isHtmxRequest: False, id: "doubleValue", value: -1.7976931348623157E+308)
✅ Route_values_in_component<Double>(isHtmxRequest: False, id: "doubleValue", value: 1.7976931348623157E+308)
✅ Route_values_in_component<Double>(isHtmxRequest: False, id: "doubleValue", value: 2.7182818284590451)
✅ Route_values_in_component<Double>(isHtmxRequest: True, id: "doubleValue", value: -1.7976931348623157E+308)
✅ Route_values_in_component<Double>(isHtmxRequest: True, id: "doubleValue", value: 1.7976931348623157E+308)
✅ Route_values_in_component<Double>(isHtmxRequest: True, id: "doubleValue", value: 2.7182818284590451)
✅ Route_values_in_component<Int32>(isHtmxRequest: False, id: "intValue", value: -2147483648)
✅ Route_values_in_component<Int32>(isHtmxRequest: False, id: "intValue", value: 2147483647)
✅ Route_values_in_component<Int32>(isHtmxRequest: False, id: "intValue", value: 42)
✅ Route_values_in_component<Int32>(isHtmxRequest: True, id: "intValue", value: -2147483648)
✅ Route_values_in_component<Int32>(isHtmxRequest: True, id: "intValue", value: 2147483647)
✅ Route_values_in_component<Int32>(isHtmxRequest: True, id: "intValue", value: 42)
✅ Route_values_in_component<Int64>(isHtmxRequest: False, id: "longValue", value: -9223372036854775808)
✅ Route_values_in_component<Int64>(isHtmxRequest: False, id: "longValue", value: 72036854775807)
✅ Route_values_in_component<Int64>(isHtmxRequest: False, id: "longValue", value: 9223372036854775807)
✅ Route_values_in_component<Int64>(isHtmxRequest: True, id: "longValue", value: -9223372036854775808)
✅ Route_values_in_component<Int64>(isHtmxRequest: True, id: "longValue", value: 72036854775807)
✅ Route_values_in_component<Int64>(isHtmxRequest: True, id: "longValue", value: 9223372036854775807)
✅ Route_values_in_component<Single>(isHtmxRequest: False, id: "floatValue", value: -3.40282347E+38)
✅ Route_values_in_component<Single>(isHtmxRequest: False, id: "floatValue", value: 1.40129846E-45)
✅ Route_values_in_component<Single>(isHtmxRequest: False, id: "floatValue", value: 3.40282347E+38)
✅ Route_values_in_component<Single>(isHtmxRequest: True, id: "floatValue", value: -3.40282347E+38)
✅ Route_values_in_component<Single>(isHtmxRequest: True, id: "floatValue", value: 1.40129846E-45)
✅ Route_values_in_component<Single>(isHtmxRequest: True, id: "floatValue", value: 3.40282347E+38)
✅ Route_values_in_component<String>(isHtmxRequest: False, id: "datetimeValue", value: "2024-05-03T09:07:54.5004759+00:00")
✅ Route_values_in_component<String>(isHtmxRequest: False, id: "decimalValue", value: "-79228162514264337593543950335")
✅ Route_values_in_component<String>(isHtmxRequest: False, id: "decimalValue", value: "123.45")
✅ Route_values_in_component<String>(isHtmxRequest: False, id: "decimalValue", value: "79228162514264337593543950335")
✅ Route_values_in_component<String>(isHtmxRequest: False, id: "guidValue", value: "00000000-0000-0000-0000-000000000000")
✅ Route_values_in_component<String>(isHtmxRequest: False, id: "guidValue", value: "e46fb987-6eac-4a1d-9744-ec68878a7a2e")
✅ Route_values_in_component<String>(isHtmxRequest: False, id: "stringValue", value: "foo-bar")
✅ Route_values_in_component<String>(isHtmxRequest: True, id: "datetimeValue", value: "2024-05-03T09:07:54.5004759+00:00")
✅ Route_values_in_component<String>(isHtmxRequest: True, id: "decimalValue", value: "-79228162514264337593543950335")
✅ Route_values_in_component<String>(isHtmxRequest: True, id: "decimalValue", value: "123.45")
✅ Route_values_in_component<String>(isHtmxRequest: True, id: "decimalValue", value: "79228162514264337593543950335")
✅ Route_values_in_component<String>(isHtmxRequest: True, id: "guidValue", value: "00000000-0000-0000-0000-000000000000")
✅ Route_values_in_component<String>(isHtmxRequest: True, id: "guidValue", value: "e46fb987-6eac-4a1d-9744-ec68878a7a2e")
✅ Route_values_in_component<String>(isHtmxRequest: True, id: "stringValue", value: "foo-bar")

✅ Htmxor.Http.HtmxResponseTests

✅ Location_AddsLocationHeader
✅ Location_AddsLocationWIthAjaxContextHeader
✅ Multiple_trigger_events_without_details(triggerTiming: AfterSettle, expectedHeaderKey: "HX-Trigger-After-Settle")
✅ Multiple_trigger_events_without_details(triggerTiming: AfterSwap, expectedHeaderKey: "HX-Trigger-After-Swap")
✅ Multiple_trigger_events_without_details(triggerTiming: Default, expectedHeaderKey: "HX-Trigger")
✅ PushUrl_AddsPushUrlBrowserHistoryHeader
✅ PushUrl_AddsPushUrlHeader
✅ Redirect_AddsRedirectHeader
✅ Refresh_AddsRefreshHeader
✅ ReplaceUrl_AddsReplaceUrlBrowserCUrrentUrlHeader
✅ ReplaceUrl_AddsReplaceUrlHeader
✅ Reselect_AddsReselectHeader
✅ Reswap_AddsReswapHeader
✅ Retarget_AddsRetargetHeader
✅ Same_trigger_event_twice_without_details(triggerTiming: AfterSettle, expectedHeaderKey: "HX-Trigger-After-Settle")
✅ Same_trigger_event_twice_without_details(triggerTiming: AfterSwap, expectedHeaderKey: "HX-Trigger-After-Swap")
✅ Same_trigger_event_twice_without_details(triggerTiming: Default, expectedHeaderKey: "HX-Trigger")
✅ Trigger_CanUseExistingTriggerWithMultipleTriggersWithDetail_AddsCorrectTriggerHeader(triggerTiming: AfterSettle, expectedHeaderKey: "HX-Trigger-After-Settle")
✅ Trigger_CanUseExistingTriggerWithMultipleTriggersWithDetail_AddsCorrectTriggerHeader(triggerTiming: AfterSwap, expectedHeaderKey: "HX-Trigger-After-Swap")
✅ Trigger_CanUseExistingTriggerWithMultipleTriggersWithDetail_AddsCorrectTriggerHeader(triggerTiming: Default, expectedHeaderKey: "HX-Trigger")
✅ Trigger_DefaultObject_AddsTriggerHeaderWithJsonString(triggerTiming: AfterSettle, expectedHeaderKey: "HX-Trigger-After-Settle")
✅ Trigger_DefaultObject_AddsTriggerHeaderWithJsonString(triggerTiming: AfterSwap, expectedHeaderKey: "HX-Trigger-After-Swap")
✅ Trigger_DefaultObject_AddsTriggerHeaderWithJsonString(triggerTiming: Default, expectedHeaderKey: "HX-Trigger")
✅ Trigger_without_details(triggerTiming: AfterSettle, expectedHeaderKey: "HX-Trigger-After-Settle")
✅ Trigger_without_details(triggerTiming: AfterSwap, expectedHeaderKey: "HX-Trigger-After-Swap")
✅ Trigger_without_details(triggerTiming: Default, expectedHeaderKey: "HX-Trigger")

✅ Htmxor.Http.SwapStyleBuilderTests

✅ SwapStyleBuilder_After_With250Milliseconds_AddsCorrectDelay
✅ SwapStyleBuilder_AfterSettle_AddsCorrectDelay
✅ SwapStyleBuilder_AfterSwap_AddsCorrectDelay
✅ SwapStyleBuilder_ChainedOperations_AddsCorrectModifiers
✅ SwapStyleBuilder_IgnoreTitle_AddsCorrectFlag
✅ SwapStyleBuilder_InitializeAndBuild_ReturnsCorrectValues
✅ SwapStyleBuilder_MixedShowOverrides_ReturnsCorrectValue
✅ SwapStyleBuilder_NullSwapStyle_ReturnsNullStyle
✅ SwapStyleBuilder_Scroll_AddsCorrectDirection
✅ SwapStyleBuilder_ScrollFocus_AddsCorrectFlag
✅ SwapStyleBuilder_ShowNone_ReturnsCorrectValue
✅ SwapStyleBuilder_ShowOn_AddsCorrectSelectorAndDirection
✅ SwapStyleBuilder_ShowOn_BottomDirection_AddsCorrectModifier
✅ SwapStyleBuilder_ShowOnBottom_ReturnsCorrectValue
✅ SwapStyleBuilder_ShowOnTop_ReturnsCorrectValue
✅ SwapStyleBuilder_ShowWindow_AddsCorrectWindowAndDirection
✅ SwapStyleBuilder_ShowWindow_BottomDirection_AddsCorrectModifier
✅ SwapStyleBuilder_Transition_AddsCorrectFlag

✅ Htmxor.RequestRoutingTest

✅ HxRequest
✅ NormalRequest